code & chips

general programming stuff…

Posts Tagged ‘SQL

Microsoft SqlServer SMO Assembly Location

leave a comment »

I have just spent the last hour trying to locate – by hook, crook and Google – the location of the SMO assemblies I need to develop a sql management application in C#.

I found it and need to log it:

{Program Files}\Microsoft SQL Server\100\SDK\Assemblies

 

Written by Kam

July 6, 2011 at 4:37 pm

Posted in Uncategorized

Tagged with

SQL Stored Procedure runs slow when run through C# code but not SQL Studio

leave a comment »

I ran a stored procedure through SQL Server Studio and it came back quick!

I ran the same stored procedure through C# code and it ran slow.

The solution?

 

SET ARITHABORT ON

GO

CREATE PROCEDURE dbo.SomeProcedure

AS

BEGIN

(…)

END

 

Not altogether sure why though…..ho hum…

Written by Kam

February 5, 2011 at 12:14 am

Posted in Uncategorized

Tagged with

Follow

Get every new post delivered to your Inbox.