Viewing 15 posts - 346 through 360 (of 907 total)
Here is another way to use a pivot table query. This example is a modified version of one of the pivot table examples on my website:
create table Ttest (id...
March 5, 2003 at 3:39 pm
I remember someone saying this has something to do with your mail server going down. Might try:
xp_stopmail, then xp_startmail.
Gregory Larsen, DBA
If you looking for SQL Server Examples check out...
March 4, 2003 at 11:20 am
Maybe something like this might work for you. This should return one word proceeding the characters "Domain:"
create table x (row int, test_text text)
insert into x values (1,'User name: claremsu...
March 3, 2003 at 10:10 am
I don't seem to get an error when I run this code on my SQL Server 2000 machine:
create table task(taskid int, taskname varchar(100), comment varchar(100))
insert into task values (5, 'garbage','garbage,...
February 27, 2003 at 5:08 pm
Ok, I have to confess I spelled it wrong first, but the word just doesn't seem to be one that is part of my everyday communication.
Sure is amazing...
February 27, 2003 at 2:08 pm
Yes. One optin would be to have a job on the from server that does the following:
Step 1) Takes a backup of the database.
Step 2) Runs sp_start_job...
February 27, 2003 at 11:23 am
I thinks something like this might work. Let me know if this does the trick:
create table x (row int, test_text text)
insert into x values (1,'Logon Failure: Reason: Unknown user...
February 27, 2003 at 11:10 am
Here is what I might do:
1) Add a job that never end, and all it does is run your process every ten seconds.
or
2) Add a job that never ends, and...
February 27, 2003 at 10:34 am
Possible COALSCE might be slightly faster than ISNULL. Even if it is not, it does support more than than just two columns. Here is an example:
create table x...
February 26, 2003 at 1:51 pm
A backup and retore will work. Or you could detach the database, make copies of the physical log and data files, and copy them to the external box, and...
February 26, 2003 at 8:45 am
You might also try:
sp_helptext <your sp>
This sp will return the the code for the SP.
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
February 26, 2003 at 8:41 am
Try this out:
CREATE nonCLUSTERED INDEX index_by_Returned_Date
ON finaltable(Returned_Date DESC)
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
February 25, 2003 at 12:18 pm
In this http://www.sqlservercentral.com/columnists/glarsen/collate_part1.asp I described how to work with different collating sequences.
Gregory Larsen, DBA
If you looking for SQL Server Examples check out my website at http://www.geocities.com/sqlserverexamples
February 25, 2003 at 8:13 am
Just wanted to correct EWILSON10's two query option a little. You need to sort each query in different orders (inner one asc, outer one decending)
USE Northwind
SELECT TOP 1 tablename.LastName
FROM...
February 25, 2003 at 7:30 am
I'm wondering if these are related to your database closing when no one is using it. If this is the case, it would open whenever someone needed to use...
February 24, 2003 at 5:25 pm
Viewing 15 posts - 346 through 360 (of 907 total)