Viewing 15 posts - 346 through 360 (of 522 total)
Based on the inforamtion you provided, one database seems better in terms of development, maintanence, and deployment.
SQL server is not good at manage relations between databases. So create one db...
October 5, 2005 at 7:33 am
Assume the parameter for the period is @PeriodDate, which is a datetime.
Togenerate the report for the week contains this date,
First of all, find out the @WeekStartTime and @WeekEndTime that contains...
October 4, 2005 at 10:47 am
alter database your_db remove file the logical log file to remove
If it gives errors, you need to truncate the log first.
October 4, 2005 at 10:27 am
You can use filter on TextData column.
If the client side calls stored procedures, you can trace Stored Procedures-->RPC:Completed and set the SP name as filter.
If the client sides...
October 4, 2005 at 7:25 am
I supposed you were using SQL 2k. But It seems you are not.
September 30, 2005 at 7:07 am
Can you print the ulActualLen and ldata after get the parameter in the xp by srv_sendmsg?
September 29, 2005 at 10:57 am
The following is the pseudo code:
DECLARE @TmpTable (RID int identity, stockid, time, Amt, Delta)
INSERT @TmpTable (Stockid,time,Amt, Delta)
SELECT Stockid,time,Amt,0
FROM YourTable
ORDER BY Stockid, time
UPDATE A SET Delta=b.Amt- a.Amt -- If you...
September 29, 2005 at 10:43 am
Use sp_helprole
application role is a database role, not a user
September 29, 2005 at 10:30 am
If you use constant as parameter, you can try to cast it to int. Or declare a variable.
DECLARE @retval int
DECLARE @Param int
SET @Param=255
EXEC @retval =...
September 29, 2005 at 10:07 am
Yes. try exit with different number in your bat
e.g. :
EXIT 3
September 28, 2005 at 7:40 am
Another way is to put all your dos command in a bat file. Run the bat file from sql job
September 28, 2005 at 7:25 am
AFAIK, you cannot do it.
You can define a temporary table and save the results of your SP there. Then open the cursor by select from the temp table.
September 28, 2005 at 7:23 am
You can have text or image data type column in select statement directly. The TEXT column does not need to be the last one. I have this kind of proc...
September 28, 2005 at 7:21 am
When the SELECT is not in a transaction, SELECT * FROM WITH(UPDLOCK) will prevent others to update the table while the select statement is running.
If the hint is not there, only...
September 27, 2005 at 7:25 am
Viewing 15 posts - 346 through 360 (of 522 total)