Viewing 14 posts - 61 through 74 (of 74 total)
Try this. see if you gets any error then post it
USE [master]
GO
CREATE DATABASE [AdventureWorks] ON
( FILENAME = N’C:\Data\AdventureWorks_Data.mdf’ ),
( FILENAME = N’C:\Data\AdventureWorks_Log.ldf’ )
FOR ATTACH
GO
February 8, 2012 at 7:05 pm
nice way to deal with excel data to insert into table.
February 8, 2012 at 9:07 am
Granting EXECUTE permission on a stored procedure
The following example grants EXECUTE permission on stored procedure HumanResources.uspUpdateEmployeeHireInfo to an application role called Recruiting11.
USE AdventureWorks2008R2;
GRANT EXECUTE ON OBJECT::HumanResources.uspUpdateEmployeeHireInfo
...
February 8, 2012 at 9:02 am
If you have only xls and txt files then you can simply use the below query to copy
exec master.dbo.xp_cmdshell 'copy c:\source\*.txt D:\folder1\'
exec master.dbo.xp_cmdshell 'copy c:\source\*.Xls D:\folder2\'
February 7, 2012 at 10:15 pm
February 7, 2012 at 9:36 pm
February 7, 2012 at 8:00 pm
Here is the command for adding user on SQL server 2000/2005
--2000
exec sp_addlogin @loginame='NewLoginName',
@passwd='The Password',
@defdb='Default Database Name', --Optional
...
February 6, 2012 at 10:06 pm
it seems you moved the resourceDB to other location. after restart it will show both location in error log. next time it wont trigger the same error.
February 6, 2012 at 10:01 pm
February 6, 2012 at 12:53 am
Here is set of videos and tutorial for SQL server beginer, it wil help you to start the journry of sql server.
February 5, 2012 at 10:54 pm
You can use job history to find the duration of job. by right clicking on job in agent activity monitor.
February 4, 2012 at 11:25 am
Viewing 14 posts - 61 through 74 (of 74 total)