Viewing 15 posts - 61 through 75 (of 90 total)
Hi Brian,
Sounds like you might consider normalizing the database a bit more. But you might try something like this:
Here you are assuming that the only values in the column that...
May 6, 2004 at 12:30 pm
Actually, I think With CUBE has been deprecated. It's a SQL Server 6.5 feature that allowed for viewing data three dimensionally. Now the prefered method is to use Analysis Services,...
May 6, 2004 at 11:23 am
As to the magic list -- If you open SQL Query Analyzer, (From Enterprise Manager Select a Database, Click the Tools Menu...Choose SQL Query Analyzer) And choose Transact SQL Help...
May 5, 2004 at 4:43 pm
Hi,
Try this, I think it may be what you're looking for:
SELECT
database_name,
backup_finish_date,
TYPE
FROM DBBackup
GROUP BY database_name,backup_finish_date,TYPE
WITH CUBE
May 5, 2004 at 4:28 pm
I noticed that too. According to MS documentation you can use a table variable just like a table exept, however, they may not be used in the following statements:
INSERT...
May 4, 2004 at 12:57 pm
I see. fn_get_sql() is a new admin function included with SQL2K sp3. It returns the objectid of currently executing sql. It takes sql_handle, a binary from sysprocesses as its only...
May 3, 2004 at 5:51 pm
Try using the T-SQL RAISERROR statement. Using RAISERROR you can return to the client a string in the raiserror statement or a system defined message from dbo.master.sysmessages. You can add...
May 3, 2004 at 4:56 pm
Try using CONVERT instead of CAST. Like SELECT CONVERT ( datetime, '20040503',101)
101 is the format code for the date format you are searching for.
May 3, 2004 at 4:47 pm
There are several ways. You can Run sp_who, or sp_who2 from Query Analyzer. The results however may be a bit cryptic. In Enterprise Manager, you can also expand the Management...Current Activity...
May 3, 2004 at 4:41 pm
Just a note: The SQL Server Function RTRIM can be used for this exact purpose. The syntax is RTRIM(@concatstring).
May 3, 2004 at 4:34 pm
I've run into this same problem in the past. You might consider truncating the log on Checkpoint. Try:
sp_dboption 'database_name', 'trunc. log on chkpt.', 'true'
May 3, 2004 at 10:28 am
You might try another way to do what you're doing besides cursors, but the following works:
declare @sourcetable table (nr int, tekst varchar(10))
declare @desttable table (nr int, tekst varchar(10))
declare @val1 int
declare...
April 30, 2004 at 7:10 pm
I think the optimizer in SQL Server resolves a lot of these types of issues too.
April 30, 2004 at 10:49 am
Enterprise Manager can create this script for you.
April 20, 2004 at 2:24 pm
Viewing 15 posts - 61 through 75 (of 90 total)