How to display the names of my SQL Server tables in a listbox using vb.net? I want to show the names of the tables I have in my SQL Server database in a listbox using vb.net.  I tried this but it's not working:   connetionString = "Data Source=ABDELOUAHED;Initial Catalog=table_creances;integrated security=true"  connection = New SqlConnection(connetionString)   sql = "select * from table_creances"   Try         connection.Open()         adapter = New SqlDataAdapter(sql, connection)         ds.Clear()         adapter.Fill(ds)         connection.Close()         ListBox1.DataSource = ds.Tables(0)     Catch ex As Exception         MsgBox(ex.ToString)     End Try   table_creances is the name of my database.  Any help is very appreciated.
How do I get list of all tables in a database using TSQL? What is the best way to get the names of all of the tables in a specific database on SQL Server?
How can I resize (not compress) multiple images in a MS Word document? In a blank document, I insert images (screenshots - all are of same size and same format) from a folder. I want to resize the images to a desired size. All now I am doing is selecting one image by one, setting its size. Word does not seem to have multiselect working for images.  Ideally, I want to select multiple images set its size in one go with out use of a macro. How does accepting an answer work? What does it mean to accept an answer? How do I accept an answer, and what are the rules? Can I accept my own self-answer? What are the reputation benefits? Which answer should I accept? Should I upvote the accepted answer? What should I do if none of the answers are suitable?      For more information, see "" in the . Omission of the indefinite article to eliminate ambiguity love between husband and wife   What is the reason that there is no article (e.g. "love between a husband and a wife") in the above? Has some kind of a rule been identified grammatically when it comes to such a case? If I were to guess I think it's because the indefinite article 'a', the purpose of that, is taking a generic sample (or 'instance') from a 'class' (the class of husbands), but in the above sentence you want to refer to the class itself... the husband class and the wife class... and not an 'instance' of them, because it just is more to the point. Do you think this is a fair reasoning? Also, a thought came to me that with the use of the indefinite article, you get a generic husband and a generic wife, which, may not necessarily love each other (for they are not a specific pair of a specific husband and a specific wife who in fact love each other). Why are there only derivatives to the first order in the Lagrangian? Why is the Lagrangian a function of the position and velocity (possibly also of time) and why are dependences on higher order derivatives (acceleration, jerk,...) excluded?  Is there a good reason for this or is it simply "because it works". I installed Blender from official Ubuntu repository but its version is always behind the version available from the official Blender website.  I'm aware that I can launch the program within the downloaded folder, but i want to replace the install version with a new version downloaded from the website?   It must be present in the unity launcher.  I'm also aware of the available PPA's that are available, however I just want to install Blender manually.  Thanks in advance Spoiler warning!  During the first escape attempt in Portal 2 (when GLaDOS is still in charge) she opens a door for you which you can choose to go through instead of following Wheatley (the blue-eyed ball). What happens if you go there? default constructor for int how is this picture made? Good day guys, i have to something like this, any idea how is this picture made ?  so it looks like negative i did invert it in photoshop but the bright side of his face was blue, so there been negative effect and smting been used to change his face to blue before nagative or smting that changed his face to normal skin color after negative ? what can it be ? what do you guys think ? THANKS ! for help. What does the function f: x ↦ y mean? I am doing , and am having a few problems with function notation. I understand the form f(x).  What does the form f: x ↦ y mean? Could you also give one or two examples?  And, if possible, state your source. Thank you. It seems that panel shadow is somehow hardcoded in KDE 4 and devs do not have any plans to change it and/or make it customizable. So, what I'm actually asking is some kind of hack (if there is any) which will remove the shadow of the panel in KDE 4.x completely (but without need to disable all desktop effects in the process).  Possible application: When a user wants a completely transparent panel, no top/bottom borders at all, the shadow is completely out of place and destroys the experience. I read recently that you can find the number of digits in a number through the formula $\lfloor \log_{10} n \rfloor +1$ What's the logic behind this rather what's the proof? Why use the Conjure Minor Elemental spell when its results are so unpredictable? The  spell states:  You summon elementals that appear in unoccupied spaces that you can see within range. You choose one the following options for what appears:  One elemental of challenge rating 2 or lower Two elementals of challenge rating 1 or lower Four elementals of challenge rating 1/2 or lower Eight elementals of challenge rating 1/4 or lower.   It seems like the only two things a player can select are the maximum CR of the elemental conjured, and, arguably, the location its summoned in. I am confused as to why you would want to use this spell given that its results are so unpredictable. Why would a wizard cast a spell that's essentially an open invitation to whatever elemental from a list decides to show up? You can't strategize around the spell very much because, as written, you don't choose what gets summoned, and you can easily end up with something you weren't counting on. It won't be useless, but why would you cast a spell that has such an unpredictable result? It's like the difference between the chromatic orb and chaotic bolt - if the chaotic bolt didnt have the chance to bounce. You'd never pick a random damage type over a damage type of choice. Why would you choose a spell that might do something you want over something that does exactly what you intend it to do? What are the situations in which you would use this spell that wouldn't be better solved by a spell of equal or lower level that has more predictable results? Is there an MD5 Fixed Point where md5(x) == x? Is there a fixed point in the MD5 transformation, i.e. does there exist x such that md5(x) == x? I was considering playing a Summoner in my next Pathfinder campaign, and I decided that I wanted my Eidolon to be a a four-armed giant (the character being a Gnome with a height complex).  Well, I thought to myself: If it has four arms, then shouldn't it be able to wield two two-handed weapons?  As far as I can tell, it should work. That said, how would that work, exactly? I would assume that it would work like usual two-weapon wielding as far as feats and the like, and it would gain all the bonuses from two-weapon wielding as well. However, as this isn't exactly something that happens often, and thus there are no rules for it (that I can find) I can't be sure of any of this. Does anyone know of anything that could help me with this? Evaluating the integral $\int_0^\infty \frac{\sin x} x \,\mathrm dx = \frac \pi 2$? A famous exercise which one encounters while doing Complex Analysis (Residue theory) is to prove that the given integral: $$\int\limits_0^\infty \frac{\sin x} x \,\mathrm  dx = \frac \pi 2$$ Well, can anyone prove this without using Residue theory?  I actually thought of using the series representation of $\sin x$: $$\int\limits_0^\infty \frac{\sin x} x \, dx = \lim\limits_{n \to \infty} \int\limits_0^n \frac{1}{t} \left( t - \frac{t^3}{3!} + \frac{t^5}{5!} + \cdots \right) \,\mathrm  dt$$ but I don't see how $\pi$ comes here, since we need the answer to be equal to $\dfrac{\pi}{2}$. How to add line break to caption without using caption package I wish to add a line break to a caption, but I would wish to avoid adding of caption package. Is it possible?  \documentclass{article} \usepackage[format=plain,  justification=raggedright,singlelinecheck=false]{caption} \begin{document} \begin{figure} \caption{This is the caption\\ This is the second line} \end{figure} \end{document} Evaluation inside Button stops after some seconds Can a bird, previously at earth potential, get electrocuted by landing on a powerline at high-enough voltage due to the initial "equalization charge"? At the voltage levels of typical overhead transmission lines in the US, a bird can land on one and be just fine (as long as it doesn't do something like spread its wings and touch a tree or something else at lower electric potential).  However, what about a hypothetical powerline at much higher voltage (as in tens of megavolts). Could landing on such a powerline fatally-shock the bird even though it does not complete a circuit for sustained current? (Assume that the distance is long enough that electrical arc'ing is impossible.)  NOTE: My understanding of what happens when a bird flies from an earth object to a powerline (please correct me if I'm wrong) is that - upon contacting the wire - its electric potential changes from earth-potential to the powerline's potential. In order for this to happen, there is an initial transfer of electrical energy (i.e. flow of charge i.e. current) from the powerline to the bird which "equalizes" their electric potential, which happens nearly instantaneously. If this is correct, then my question can be restated more generally as "Can an 'equalization charge' such as this result in a fatal shock, if the potential difference that it's equalizing is high enough?" Migrating from Evolution to Thunderbird How to make crontab email me with output? How can I make crontab email me with the output of its jobs? I have MAILTO=redacted@yahoo.com.au above the jobs, but it doesn't work.  I know I need to use something like Postfix or Sendmail but for the life of me I cannot find out how to achieve this. I've searched and searched for a simple guide on setting up Postfix but they're all insanely complicated and expect you to be setting up a whole server to send and receive email and to know all the terms (like, what is a domain name for outgoing emails?).  All I want to do is have crontab email me. Why is this so difficult??  Additional Info:  My crontab file looks like this:  MAILTO=redacted@yahoo.com.au 1 0 * * * ~/Desktop/toskymesh.sh 59 6 * * * ~/Desktop/tooptus.sh 0 3 * * * snapraid sync   More Additional Info:  The output of ps -ef | grep '[s]endmail'  root 6840 1370 0 10:26 ? 00:00:00 sendmail: MTA: accepting connections   I know for sure cron is working, but I'm testing the mail command with echo Test | mail -s Test redacted@yahoo.com.au anyway.