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 >>
Don't see what you're looking for? Search DevelopmentNow.com.
|