Viewing 15 posts - 46 through 60 (of 454 total)
Do you have the directory path as is given above. Just to test try from Start Menu --> Run --> C:\Program Files\Microsoft SQL Server\MSSQL\
and see if this folder is...
December 7, 2007 at 6:50 am
Try attach option of the mdf file and it should prompt for creation of new ldf file on verify. Never tried though.
Thanks
December 7, 2007 at 4:26 am
Thank You, thats a good idea I would probably create a tool which would automate creation of the Insert, Update, Select and Delete Stored Procedures.
Thanks
December 6, 2007 at 8:20 am
It just generates the script as it is a generic script. You need to execute the script and it would create a stored procedure. I thought this is generic and...
December 6, 2007 at 7:12 am
Can you please post what errors you are getting?
Thanks
December 6, 2007 at 6:41 am
Where do you get error? I did not understand why you are adding one day to GETDATE() function for Active and Inactive Status records.
select
[EMPLOYEE_STATUS],
CASE WHEN [EMPLOYEE_STATUS]='Active'
THEN (SELECT DATEADD(day,...
November 7, 2007 at 2:48 pm
select
* from hr
WHERE
terminate_date >=( CASE WHEN [EMPLOYEE_STATUS]='Terminate' THEN DATEADD(day,-30,GETDATE()) ELSE Terminate_date END)
November 7, 2007 at 2:29 pm
Mike Levan (11/7/2007)
I am trying to do something like this, but getting syntax errorCREATE PROCEDURE [dbo].test
@DBName varchar(30)
AS
SET NOCOUNT ON
Select * FROM @DBName.dbo.emp
WHERE jobid=''
GO
You need to use dynamic sql...
November 7, 2007 at 2:06 pm
In which case points should be alloted only for the posters who answer the questions before the answer is out, i.e. if a member answers the question correctly and within...
November 7, 2007 at 2:01 pm
I am not sure if you can use CDW for copying database from SQL Server 2000 to SQL Server 2005. Instead why don't you just trying using a backup and...
November 7, 2007 at 1:26 pm
You can as well modify your source stored procedure or query to return 0 for No and 1 for yes and that way you may not be required to CAST...
November 7, 2007 at 6:35 am
Todd Sherman (11/7/2007)
By adding the bit to the WHERE clause, it brings back information...
November 7, 2007 at 5:53 am
May not be practical in scenario's where you have features like advanced searched across say a combination 15 fields with AND, OR and braces. I would rather prefer building a...
November 6, 2007 at 1:36 pm
I believe the way Delete Database currently works has adequate steps before it deletes the database interms of having security and also prompting the user for confirmation in a separate...
November 6, 2007 at 11:19 am
Viewing 15 posts - 46 through 60 (of 454 total)