Sql objects spell checker - sql

I am just wondering that whether there is any utility which can help in determining the spelling mistakes in sql objects.
I can only think of getting information of all the sql objects and the save them in any other system (e.g. excel file) and then run a spell checker on it.
I am looking forward for a better way for this, like any plugin for MSSQL.

You can use spell check functionality built in Office as CLR function. Example see here:
http://msdn.microsoft.com/en-us/library/office/aa537153%28v=office.11%29.aspx
To use this, you need MS Word to be installed on server side.

Related

how to use phpmyadmin database in visual studio 2010?

I have my database in phpmyadmin.
Now I have to use that database in SQL server database.
But I cannot import .SQL file into visual studio 2010.
So please give me a solution so that I can use that database and perform CRUD operation also.
Okay so im trying to help you dude. but first, you must understand that phpmyadmin is just an RDMS environment for accessing, configuring, managing, administering, and developing all components of the RDMS. So what does it mean? you can still work on visual studio probably c# or vb (i guess) so you can perform a CRUD operation. How? these are the things you need to do:
know how to connect your prepared .net language (c# or vb) - you might need to look at Connector/NET mysql. you can google, its free.
familiarized on the said library.
find some tutorial on how to do crud operation. maybe this article is great for you. Good Luck

Connect to SQL Server via connection string on OS X

I've been coding in objective-c in Xcode for just over 2 days now. So please forgive me if I'm being stupid at all. I am from a C# / .NET background and am looking to extend my current solution from Windows platforms to Mac. I've searched far and wide for an answer to this requirement, and all I came up with is 'create a consumable web-service'. However, I don't want to do this.
So far, my application can parse JSON and send in via command line. One of the objects in the JSON is the SQL connection string. Now I need to be able to:
Create an open connection to a simple SQL Azure database, based on the NSString containing my SQL connection string
Execute a query, with parameters
Close and dispose of the SQL connection
Any and all help is appreciated
For talking to an SQL server from a Mac, you're going to need to have an appropriate ODBC driver, or a set of libraries that works directly with objective-c (or c).
ODBC isn't particularly well supported by OS X, so I'd avoid it unless you can find a tested and installable ODBC driver to work with it. With that said, we do make use of it in our products to talk to other (non-Azure) SQL databases and have found it stable and useful, as long as the drivers are good.
Otherwise, you're going to need to seek out an SDK that will work for you. As far as I can tell, they've open-sourced most of their SDK on github, but there isn't an OS X version there.
Thanks for your answer, and even though it does point me in the right direction, as you correctly stated, there is no OSX driver for Azure from Microsoft.
Because of this reason, i feel the original question, to connect to a SQL Azure database, has not been answered.
I believe the best, and correct, way to proceed is to do what i originally did not want to do and set up a consumable web-service for the DB calls my application required.
My apologies for not up-voting your response sooner, it was an oversight, I did not intend to be rude.
Thanks again for your reply gaige

VS style snippets in SSMS 2012. Do they exist?

I am trying to setup a simple snippet in SQL Server management studio. When I heard the word "snippet", I assume that they would work like they do in Visual Studio. By that I mean that there are variables that get filled in, etc... I am not seeing that.
Can someone tell me whether SSMS 2012 supports Visual Studio style snippets. If so, can you provide an example of a snippet that supports variable replacement.
This might be close to what your looking for. Under View->Template explorer is a list of a whole bunch of structures that you regularly use when working with, building, developing databases. You can also get to it using Ctrl+Alt+T. There are literally hundreds in there. Everything from building a view to setting up a trigger to creating XML schemas.
The really nice thing with templates is you can build your own structures that you regularly use. I have built quite of few of my own templates to hold snippets that I have acquired from the likes of Brent Ozars blitz scripts and others like the improved SP_WHO from Adam Machanic and such.
While maybe not as fancy (read interactive) as the ones you'll find in the Visual Studio projects I find them very handy.
If you use these templates there is another little feature that can be very handy. If you press Ctrl-Shift-M (or use the toolbar button that shows an A->B) you get a dialog that lets you easily replace the template parameters with your own values.
Update post research into SSMS2012
I just recently started using SSMS 2012 and see there is a new feature that I wasn't aware of. When right clicking you do in fact see the 'Insert Snippet' drop down. I understand your question better now. Apparently however, these are pretty much the same as what I posted above.

Can I use My.Computer.Network.DownloadFile in an access db?

I'm trying to download a file from the internet by clicking a button in MS Access.
I'm trying to use My.Computer.Network.DownloadFile as described here:
http://msdn.microsoft.com/en-us/library/1say4ws7(v=vs.80).aspx
Private Sub Command2_Click()
My.Computer.Network.DownloadFile("http://www.example.com/temp/xml_test.xml", "C:\xml_test.xml")
End Sub
but the 'Microsoft Visual Basic for Applications' IDE that I'm typing this into seems to have no idea what I'm talking about (text just turns red).
Can I just not do this through the built in VB editor or can I simply load a library or something to make it work?
Sorry but I'm very new to VB and to Access so search results are not specific enough for me to understand - lord knows I've tried.
I'm using Access 2010 but the DB was created in an previous version - not sure if that matters.
You can't use any .NET libraries in Access/VBA.
I recommend you check out Pearson's code for downloading files, posted on his website. It says it's written for Excel but it should work in Access. http://www.cpearson.com/excel/DownloadFile.aspx
To contradict my first statement, technically there are actually a few .Net libraries that can be called from VBA if you know how to do it (late binding only, for one thing). I'm having trouble finding the information on that right now. And I somewhat doubt that the library you're trying to use here is one of them. If I remember correctly, some of the encryption library can be used in VBA.

SQL Databases in vb.net

If you are using an sql database with a vb.net application, does the user need to have anything extra other than the .net framework installed for the program to run? Meaning, if I simply compile the application, are there any extra steps I need to take to make this work?
Thanks for the help!
According to your comment response on the question of having a SQL DB server somewhere:
Well duh, my question was referring to
drivers. Do they need any extra .dlls?
Nope, you should be good to go. :)
The only time you have to worry about this is if you use a 3rd party control or tool that isn't installed with the framework.