Viewing 15 posts - 91 through 105 (of 137 total)
If you want to change the number of rows returned each time by passing in a parameter, you will have to use SET ROWCOUNT instead of TOP. SET ROWCOUNT will...
November 25, 2002 at 3:07 pm
If you want a generic function you could do it like this:
SET field_name = RIGHT(REPLICATE('0',5) + field_name,5)
-Dan
November 25, 2002 at 12:40 pm
Another option if you don't want to convert all sub-procs to user-defined table functions, is to still use a temp table, but only reference it in the main proc. ...
November 22, 2002 at 2:49 pm
Currently I'm using OPENQUERY, like this (ugly, I know):
(SELECT * FROM OPENQUERY(SERVER1, 'SELECT Client_ID, Ult_Client_ID=db1.dbo.fn_Get_Ultimate_Parent_ID(Client_ID,default) FROM db1.dbo.Client_Master'))
-Dan
November 22, 2002 at 11:36 am
I believe the value to be totally incorrect, here's why:
My stored proc is a procedure used to search a large database, but it also does a few remote queries in...
November 22, 2002 at 8:01 am
FYI... just another tidbit of info. It works if I use a hardcoded paramenter:
SELECT * FROM OPENQUERY(SERVER2, 'SELECT val1=db1.dbo.fn_MyFunction(21)')
-Dan
November 21, 2002 at 1:14 pm
FYI, I think Terraserver is running mulitple 1.5+ terrabyte databases.
-Dan
November 21, 2002 at 10:02 am
You can launch the proc regularly by scheduling as a job. Using the Enterprise Manager: Management-->SQL Server Agent-->Jobs-->New Job...
-Dan
November 21, 2002 at 7:01 am
I don't believe there is any parameter on bcp that will allow you to do that. Like Simon noted, you would have to do it manually.
-Dan
November 20, 2002 at 2:16 pm
I would check to see if the value has been inserted yet, before you do the insert statement. Something like this:
IF NOT EXISTS (SELECT...
November 18, 2002 at 10:04 am
I have done transactional replication on a 40gb database. I initialized the subscription server using a snapshot. I took about 8-9 hours to transfer the data. I...
November 18, 2002 at 9:46 am
If it's a hidden char, then that is difficult to detect, maybe try this:
select distinct statename
from states
where state not like '%[^A-Z ]%'...
November 15, 2002 at 8:02 am
Here is a simple proc that we wrote to watch blocking in the server...we just called it "x" so it's quick to type:
CREATE PROC x
...
November 15, 2002 at 7:28 am
Thanks all...and Paul, I'm actually enrolled in a Dec. 2591 course. Glad to hear it's worth the time.
-Dan
November 15, 2002 at 7:09 am
select distinct statename
from states
where ISNULL(LTRIM(RTRIM(state)),'') != ''
-Dan
November 15, 2002 at 7:00 am
Viewing 15 posts - 91 through 105 (of 137 total)