Viewing 15 posts - 2,851 through 2,865 (of 8,753 total)
November 9, 2016 at 5:26 am
This is well within the limits of using a script file, assuming that the actual data isn't too large and that the end customer can unzip the script file;-)
😎
Additions and...
November 9, 2016 at 4:40 am
Close all connections to the server and do the changes via sqlcmd, don't use SSMS
😎
The command is
EXEC sp_configure 'user connections', 32767;
November 9, 2016 at 4:29 am
Minnu (11/9/2016)
Dept table with 8 records
Logins table with 23 records
below query should display 31 records, but it is displaying 184 records (8*23=184).
i want below query to display...
November 9, 2016 at 2:53 am
If the database is small then my choice would be to provide scripts to create and populate the database.
😎
Question, will you at any stage have to update or refresh the...
November 9, 2016 at 2:37 am
sqlenthu 89358 (11/9/2016)
November 9, 2016 at 2:32 am
You will have to use dynamic SQL, here is a quick example
😎
USE TEEST;
GO
SET NOCOUNT ON;
DECLARE @COL01 NVARCHAR(MAX) = N'COLUMN_01';
DECLARE @COL02 ...
November 9, 2016 at 2:04 am
ramana3327 (11/8/2016)
Hi,How can we make database owner to sa default with the database refresh. With the database refresh, we are getting the person name that are refreshing
November 8, 2016 at 11:57 pm
Sometimes I use this ad hoc method which is very simple but works like a charm
😎
First a staging table
IF OBJECT_ID(N'dbo.TBL_FLAT_FILE_IMPORT_STAGING') IS NULL
BEGIN
CREATE TABLE dbo.TBL_FLAT_FILE_IMPORT_STAGING
(
FFIS_ID ...
November 8, 2016 at 11:21 pm
dec_obrien (11/8/2016)
Hi,Yes, that works thanks. I think I need to find out why though: I haven't used CROSS APPLY before.
You are very welcome.
😎
Here is a brilliant article on the subject,...
November 8, 2016 at 10:41 pm
Quick suggestion, unpivot the rows and apply the row_number with a partition on the ID
😎
USE TEEST;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.tblHierarchy') IS NOT NULL DROP TABLE dbo.tblHierarchy;
CREATE TABLE [dbo].[tblHierarchy](
[ID] [int] IDENTITY(1,1) NOT...
November 8, 2016 at 4:13 am
There can be more than one reason for this error, ie. wrong path specified, insufficient permissions, destination marked read only or not enough space at the destination.
😎
November 8, 2016 at 3:13 am
abhas (11/7/2016)
Thank you so much Eirikur and David.
Really appreciate your efforts. Its working as per requirement.
Only one issue - when same firstName and LastName comes then creating only one...
November 8, 2016 at 1:27 am
Does the query use DISTINCT?
😎
November 8, 2016 at 12:37 am
Viewing 15 posts - 2,851 through 2,865 (of 8,753 total)