Viewing 15 posts - 3,841 through 3,855 (of 8,761 total)
Eschergoedel (3/8/2016)
March 9, 2016 at 1:31 am
SQL!$@w$0ME (3/8/2016)
Which is the best practice to implement in audit columns for create datetime and create user, INSERT trigger or default constraints?Thanks!
The default constraint will only mark the date/time of...
March 8, 2016 at 10:29 pm
astrid 69000 (3/8/2016)
ohhhhh :ermm: :ermm: :ermm:no I didn't....
now I feel embarrassed :w00t:
thanks! I love learning new things 🙂
You are very welcome.
😎
March 8, 2016 at 1:10 am
This should get you passed this hurdle
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @TXML XML = '<Document>
<xs:schema elementFormDefault="qualified" targetNamespace="http://www.dummy.com/Export" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:mstns="http://www.dummy.com/Export" xmlns="http://www.dummy.com/Export" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element msdata:IsDataSet="true" name="Document">
<xs:complexType>
...
March 8, 2016 at 12:54 am
Could you please provide DDL (create table), sample data (as insert script) and expected output from that sample?
😎
March 8, 2016 at 12:43 am
astrid 69000 (3/7/2016)
March 8, 2016 at 12:39 am
astrid 69000 (3/7/2016)
I need to make a table with columns that contain the values of each one.
and the source is a table...
March 7, 2016 at 5:31 am
BEGIN and END are your friends:-D
😎
if (select count(0) from CGL) = 0
BEGIN
dbcc checkident ('CGL', RESEED, 0)
END
else
BEGIN
declare @lastc int
select...
March 7, 2016 at 4:21 am
Quick suggestion, use the .nodes function
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @TXML XML = '<xml-response>
<clear-fraud>
<clear-fraud-stabilities>
<clear-fraud-stability>
...
March 7, 2016 at 4:07 am
mrjae (3/6/2016)
I am new to sql server and i am practicing on SQL Express. I have created a table and in error I have duplicated rows. My first...
March 6, 2016 at 4:58 am
ganapathy.arvindan (3/6/2016)
Please Help me Query/Performance Tuning Steps with out help of profiler
Quick suggestion, get Grant's book on execution plans[/url]
😎
March 6, 2016 at 3:04 am
Quick and simple solution with LEAD()
😎
USE tempdb;
GO
SET NOCOUNT ON;
declare @overlap table
(
ID int identity,
infoname char(10),
code char(10),
mods char(30),
type varchar(30),
effective date ,
termination date
)
insert into @overlap
select 'DUMMY','99205','C','*','01/01/2008','12/31/2100'
insert into @overlap
select 'DUMMY','99205','C','*','01/01/2009','12/31/2100'
insert into @overlap
select...
March 4, 2016 at 9:41 pm
Quick suggestion, similar to Luis's
😎
DECLARE @LOG_STRING VARCHAR(200) = 'Login failed for user ''User1''. Reason: Failed to open the explicitly specified database. [CLIENT: 11.11.11.11]';
SELECT
SUBSTRING
...
March 4, 2016 at 1:18 pm
MotivateMan1394 (2/28/2016)
Ask help from old-hands
We have a server : win 2008 R2 enterprise (virtual machine) - Sql server 2014 - sp1
we had 22 cpu core which...
February 28, 2016 at 7:54 am
farax_x (2/19/2016)
BEGIN TRY
IF '1' COLLATE Arabic_CI_AI = '1' COLLATE Arabic_100_CI_AI
...
February 20, 2016 at 3:44 am
Viewing 15 posts - 3,841 through 3,855 (of 8,761 total)