Archived Months
January 2003
March 2003
April 2003
May 2003
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
April 2008


all groups > sql server programming > august 2007 > threads for saturday august 25

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

changing data type gives timeout
Posted by .nLL at 8/25/2007 10:50:11 PM
Hi, i am trying to change a column's data type from nvarchar(255) to char(2) buy getting timeout error. Here is what i got a db with 4.500.000 records and 450 mb size and so far i have set timeout 0 in server properties but it didnt help Any ideas? Thanks ...more >>

how to query date in stored procedure?
Posted by Jassim Rahma at 8/25/2007 7:46:00 PM
Hi, I want to know how can i query from sql server date field without the time? i mean if i have the following dates: 8/22/2007 12:00:00 AM 8/22/2007 12:23:00 AM 8/22/2007 04:15:00 PM and i want to SELECt all the 8/22/2007 dates.. how can i creates such stored procedure? ...more >>

debugging a proc
Posted by JayKon at 8/25/2007 3:48:22 PM
When debugging a proc, sometimes it leaves a cursor open and I have to manually run the close/dealloc. It is annoying. Is there something like: sp_clear_this_crap_up() available? 2000 & 2005 ...more >>

sp_send_dbmail, attaching query problem
Posted by TdarTdar at 8/25/2007 2:36:01 PM
Hello, I have the following code below, I know the query @getinserted is correct because I have it sending to me in the email message with out adding the @query Comand to the sp_send_dbmail. So I know it sends the email and I know the query that i get in the email works, but I still get: ...more >>

Transactions - T-SQL vs ADO.NET
Posted by Smithers at 8/25/2007 2:18:39 PM
I'm writing a utility in C# that will cause scripts to be executed against a SQL Server (2000 and/or 2005). The utility will read the contents of script files, create a connection to the database, and then execute the scripts via ADO.NET's SqlClient classes. Question: Would it be better to...more >>

ActualRebinds is absent!
Posted by Leila at 8/25/2007 3:47:20 AM
Hi, BOL says that ActualRebinds is present in xml showplan. By this query: use northwind go set statistics xml on go select c.companyname, o.orderid from customers c inner loop join orders o on c.customerid=o.customerid I get only EstimatedRebinds on inner side on loop join. When does ...more >>

Scalar function - performance terror
Posted by David Sundström at 8/25/2007 2:58:10 AM
Hi guys, since I really appreciate this newsgroup I would like to share something that I just could not believe! In a stored procedure I needed do do the following: select t1.x, t1.y from MyFirstDB.dbo.table1 t1 where t1.y IN (select y from MyOtherDB.dbo.CorrelatedTable t2) since the su...more >>

Server name as parameter for a stored procedure
Posted by AndyWawa at 8/25/2007 1:46:37 AM
Hi, I've got 2 problems. 1. I would like to write a strored procedure and use a sever- and database name as a parameter. It goes so: create proc my proc @servername varchar(50), @dbname as varchar(50) as exec @server.@dbname.other_proc update @server.@dbname.some_table set some_column = s...more >>




DevelopmentNow Blog