Viewing 15 posts - 13,366 through 13,380 (of 13,429 total)
reporting services must be installed on the same box as SQL to comply with the default licensing requirements, i think.
after that it's the usual cost benefit scenario.....most people recommend SQL...
May 16, 2005 at 6:59 am
after each update statement, check the @@ROWCOUNT value...it tells you the number of rows affected by the previous transaction.
with that value, you can logically decide what to do next...wheter it...
May 16, 2005 at 6:36 am
Someone else may have a better solution but this works:
this cursor based solution finds columns that are of type VARCHAR, and then returns EVERYTHING that matches your input string
this would...
May 10, 2005 at 3:26 pm
A while back in my shop i had to search all columns of type int.
In my case, many of the columns where actually foreign keys, but were not following the...
May 10, 2005 at 7:17 am
i'm a huge fan of constraints.... here's the things i typically look for:
in our shop, Primary keys have a naming convention: they all end in either "ID" or "TBLKEY"
You probably...
May 10, 2005 at 6:25 am
For an index
if exists (select * from dbo.sysindexes where name = N'INDEX' and id = object_id(N'[dbo].[TABLEA]'))
print 'Yep, there is an index'
else
print 'No Index of that name'
May 5, 2005 at 6:33 am
ALTER the database, and then start a transaction which tests if the feature you tried to change is changed. for example:
ALTER DATABASE PUBS SET AUTO_CLOSE OFF
--now test if the feature...
May 5, 2005 at 6:16 am
this is from a discussion post i had saved in the past: it used bcp to send to a dynamically named file based on the @id field; hope this helps.
DECLARE...
May 4, 2005 at 6:24 am
does this work for you? i just put the commadn into a string and caled the shell with the variable.
DECLARE
@TodayDate as varchar(40),
@TodayHour as varchar(40),
@TodayMinu as varchar(40),
@NewFileName as varchar(100),
@cmdstr as varchar(128)
SELECT...
May 2, 2005 at 9:51 am
the move command really just copied the file with the given name, and then deletes the previous file. there is no need to move it with the same name, and...
May 2, 2005 at 6:00 am
you might not be aware, but all error messages from sql server exist in the sysmessages table in master; around 3831 on my machine;
select * from dbo.sysmessages
a more common...
April 29, 2005 at 6:34 am
The foreign keys hierarchy can prevent you from just deleting data in the tables;
the script below creates a list of all the tables in hierarchy order, and creates the delete...
April 28, 2005 at 6:32 am
the error you received is because child records exist which are not in the parent/referenced table;
run this query:
SELECT CLINICPHONE AS MISSINGCLINICPHONE,* FROM DBO.CENTER WHERE CLINICPHONE IS NOT NULL AND CLINICPHONE...
April 27, 2005 at 9:21 am
I don't think the time to run DBCC CHECKDB is a function of the size of the database only, but rather a combination of something like
(number of tables) *...
April 21, 2005 at 7:37 am
On my dev box I had sql7 as the default instance , and SQl 2000 and SQL 2005 as named instances;
from the SQL standpoint I had no problem, and all...
April 19, 2005 at 7:02 am
Viewing 15 posts - 13,366 through 13,380 (of 13,429 total)