Viewing 15 posts - 5,221 through 5,235 (of 26,490 total)
Also, you may want to bookmark this, it is the SQL Server 2012 Books Online on MSDN:
https://msdn.microsoft.com/en-us/library/ms130214(v=sql.110).aspx
May 15, 2015 at 2:35 pm
You really need to read this:
https://msdn.microsoft.com/en-us/library/ms186858(v=sql.110).aspx
May 15, 2015 at 2:32 pm
sql-lover (5/15/2015)
Lowell (5/15/2015)
Executed...
May 15, 2015 at 2:26 pm
briancampbellmcad (5/15/2015)
Msg 3201, Level 16, State 2, Line 1
Cannot open backup device '\\belmont\c$\BCC_DB_backup_201505030017'. Operating system error 2(The system cannot find the file...
May 15, 2015 at 2:14 pm
Try this:
RESTORE DATABASE BCCrestore
FROM DISK = 'C:\BCC_DB_backup_201505020017.bak'
WITH MOVE 'BBC' TO 'D:\Databases\Data\BCCrestore.mdf',
MOVE 'BBC_log' TO 'D:\Databases\Data\BCCrestore_log.ldf';
GO
If that doesn't work because BBCrestore exists, try this:
RESTORE DATABASE BCCrestore
FROM DISK...
May 15, 2015 at 1:42 pm
Luis Cazares (5/15/2015)
Or you could prevent all that casting by parametrizing your query.
SELECT @sql = 'SELECT *
FROM #Temp
WHERE DocDate BETWEEN @EndDate AND GetDate()'
EXEC sp_executesql @sql, N'@EndDate date', @EndDate
True,...
May 15, 2015 at 1:07 pm
Jeff Moden (5/14/2015)
Luis Cazares (5/14/2015)
May 15, 2015 at 1:00 pm
You could also do this since this a SQL 2008 forum:
SELECT REPLACE(CONVERT(varchar(11), DATEADD(MONTH, month_adjustment, current_month), 106), ' ', '-') AS column_name
FROM (
SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()),...
May 15, 2015 at 10:53 am
bpsavi123 (5/15/2015)
i have task where i need to update the 2 columns from 2 different tables.I need to get one column from one table and update to the other table.If...
May 15, 2015 at 10:34 am
matthew.hudsonbryan (5/15/2015)
I was going through some MeasureUp questions and one of the answers stumped me.
The sequence to restore for the answer to a question was.
Perform tail-log backup.
Restore Sunday 2:00 A.M....
May 15, 2015 at 10:02 am
asushil (5/15/2015)
some expert gentlemen on MSDN...
May 15, 2015 at 10:01 am
Jeff Moden (5/14/2015)
mw112009 (5/14/2015)
However I found it while googling...
Select top 100 * FROM CDRQ_Moderage..[CDR].[EEG_TEXT_T]
This works! :)...
May 14, 2015 at 1:29 pm
kiril.lazarov.77 (5/14/2015)
I'd appreciate if you could show me how to overcome the issue when there are +2 missing records. So if there is...
May 14, 2015 at 12:58 pm
When you granted the user sysadmin server permission you changed the users default schema from dw to dbo.
You need to add the schema name to the name of the tables,...
May 14, 2015 at 11:40 am
Viewing 15 posts - 5,221 through 5,235 (of 26,490 total)