Viewing 11 posts - 1 through 11 (of 11 total)
In case you need to use the designer, the time out settings are under the Designers, not SQL Server.
January 6, 2017 at 1:38 pm
Is this what you are looking for?
--Test table
--Test table
DECLARE @sometable TABLE (ID INT IDENTITY(1,1), Value VARCHAR(10))
INSERT INTO @sometable(Value)VALUES
(NULL),('ValueB'),('ValueC'),('ValueD'),('ValueE')
--1st value is null
SELECT * FROM @sometable
--pick the top 1 which has a...
January 6, 2017 at 1:24 pm
Not sure if this answers your question.
The Text values should be within quotes anyways, compared to integers or numeric fields for SQL. Your delimiter though should be distinct, you can...
January 5, 2017 at 6:28 am
I used the CAST to convert any Text or VARCHAR(MAX) data types, seems to work without errors for me.
DECLARE @TableName AS sysname;
DECLARE @ColName AS sysname;
DECLARE @sql AS NVARCHAR(4000);
DECLARE...
January 3, 2017 at 2:02 pm
I agree Tim. For those who don't find use to a particular article, you may as well not rate it. For me, although I am not going to use this...
January 3, 2017 at 1:24 pm
Can you try this?
CREATE PROCEDURE dbo.GetDetails ( @AccountID NVARCHAR(10) = '', @Name NVARCHAR(20) = '' )
AS
SELECT *
FROM StudentBankDetails SDB
...
December 20, 2016 at 6:32 am
Can you create a Temporary table and insert all the records into the temporary table and remove duplicates using the CTEs (Common Table Expressions)?
CREATE TABLE #employee (RowID INT IDENTITY(1,1), Country...
December 19, 2016 at 12:58 pm
If there are no nulls in the data, your query will work fine.
However, if there are any nulls in the country field, it will ignore that in your results. Try...
December 16, 2016 at 11:42 am
Hi David
What is the DB recovery setting? Simple or Full? Although production databases are NOT meant to have this setting to simple, since you mention historical databases, this setting may...
December 15, 2016 at 1:56 pm
Hi Steve
I did try that too, but the @@SERVERNAME returns the source server and the view created in the subscriber returns the subscription server. The view itself will fetch...
December 15, 2016 at 1:49 pm
Not sure if you already looked at this article in MSDN.
December 15, 2016 at 1:23 pm
Viewing 11 posts - 1 through 11 (of 11 total)