Viewing 15 posts - 2,116 through 2,130 (of 8,760 total)
If the database's backup is missing then you would need to RIGHT OUTER JOIN the sys.databases
😎
select
M.Server
,SDB.name
,M.database_name
,M.last_db_backup_date
,M.backup_size
,M.physical_device_name...
June 15, 2017 at 2:00 am
Slightly different approach using inline calendar CTE
😎
BTW the sample data set is missing the table "Time"
USE TEEST;
GO
SET NOCOUNT ON;
--/*
IF OBJECT_ID(N'dbo.Alerts') IS NOT NULL DROP TABLE dbo.Alerts;
CREATE TABLE...
June 15, 2017 at 1:44 am
June 13, 2017 at 12:18 am
June 11, 2017 at 10:22 am
Rechana Rajan - Sunday, June 11, 2017 6:46 AMHow can I prevent users from Deleting data from all tables in a DB?
Instead...
June 11, 2017 at 7:31 am
June 9, 2017 at 11:46 pm
Nassan - Friday, June 9, 2017 2:53 PMThanks for the feedback hope to see more feedbacks 300 of them today.
Happy fridayYYYYYYYYY
Happy...
June 9, 2017 at 3:14 pm
June 9, 2017 at 2:18 pm
Piling on to Luis's request for information, can you share some input and output examples?
😎
The fastest conversion to and from hexadecimal in SQL Server is by...
June 7, 2017 at 9:01 am
Chipping in, have you checked the HDD's of that computer? First thought is that you've lost the drive that hosts the primary data file for that database.
😎
June 7, 2017 at 5:39 am
Quick solution
😎
DECLARE @A TABLE( A_Path VARCHAR(MAX), A_Filename Varchar(50) , A_No Varchar(50))
INSERT @A
SELECT '123' Path, 'Dog' Filename ,'1' No UNION ALL
June 5, 2017 at 11:54 pm
Depending on the data set, using a cursor may not be the worst option, here is a quick example
😎
USE TEEST;
GO
SET NOCOUNT ON;
June 5, 2017 at 3:32 am
Here is a quick fix which is to remove the type cast from json
😎
declare @json nvarchar(max) =
'
[
{
"JDate":...
June 3, 2017 at 11:32 pm
Viewing 15 posts - 2,116 through 2,130 (of 8,760 total)