Viewing 15 posts - 5,656 through 5,670 (of 8,753 total)
Quick suggestion with a CTE and ROW_NUMBER ordered by the length of the prefix
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_PREFIX') IS NOT NULL DROP TABLE dbo.TBL_PREFIX;
CREATE TABLE dbo.TBL_PREFIX
(
PREFIX_VALUE...
April 11, 2015 at 12:33 am
Quick thought, let's not forget that tables can have more than one partition
😎
SELECT
OBJECT_NAME(SP.object_id) AS TABLE_NAME
,OBJECT_SCHEMA_NAME(SP.object_id)...
April 11, 2015 at 12:01 am
Quick suggestion, use openrowset bulk
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_SCRIPTFILE') IS NOT NULL DROP TABLE dbo.TBL_SCRIPTFILE;
CREATE TABLE dbo.TBL_SCRIPTFILE
(
SF_ID ...
April 10, 2015 at 11:48 pm
Ed Wagner (4/10/2015)
Jeff Moden (4/9/2015)
Ed Wagner (4/9/2015)
SQLRNNR (4/9/2015)
@##$@&*&%#@WTF
Peer Review
Improvement
Refactoring
April 10, 2015 at 2:53 pm
SQLRNNR (4/10/2015)
Luis Cazares (4/10/2015)
SQLRNNR (4/10/2015)
Luis Cazares (4/10/2015)
http://www.sqlservercentral.com/Forums/FindPost1676220.aspx
But, think about it, what if...
April 10, 2015 at 2:45 pm
sql-lover (4/10/2015)
I need 100% certainty. The DMV/count is needed to identify the table(s) with an empty set. A massive DDL change will be deployed against...
April 10, 2015 at 2:42 pm
Luis Cazares (4/10/2015)
SQLRNNR (4/10/2015)
Luis Cazares (4/10/2015)
http://www.sqlservercentral.com/Forums/FindPost1676220.aspx
But, think about it, what if you're...
April 10, 2015 at 2:14 pm
Quick suggestion, simplify the query, the difference between the first and the second is 50%
😎
SELECT
t.name table_name,
s.name schema_name,
p.rows AS total_rows
FROM sys.tables t
join sys.schemas s on (t.schema_id = s.schema_id)
join sys.partitions p on...
April 10, 2015 at 2:13 pm
ankithimmatlalshah (4/10/2015)
I did that but still no luck. Please advise any other options.
Can you tell us a little bit more about what you are doing,i.e. Source, Destination, Network etc.? Can...
April 10, 2015 at 2:00 pm
SQLRNNR (4/10/2015)
Luis Cazares (4/10/2015)
http://www.sqlservercentral.com/Forums/FindPost1676220.aspx
But, think about it, what if you're in situation...
April 10, 2015 at 1:56 pm
ankithimmatlalshah (4/10/2015)
Like deleing the destination and source components again.
Check/uncheck the first column is data column
Even when I tried to export the table from SQL server, it does...
April 10, 2015 at 1:13 pm
Brandie Tarvin (4/10/2015)
Eirikur Eiriksson (4/10/2015)
What are you using for the SFTP?
😎
Ah, well, that's the issue.
If I remember correctly, you have some kind of an issue with using OSS, so you...
April 10, 2015 at 12:58 pm
ankithimmatlalshah (4/10/2015)
I'm trying to export the data from SQL database to Flat file.
The data gets exported to the destination but it does not contain the header columns.
Can anybody advise...
April 10, 2015 at 12:52 pm
philosophaie (4/10/2015)
Here is my attempt but I am using data from:
http://www.connectionstrings.com/sql-server/
I believe the below is the...
April 10, 2015 at 12:49 pm
Viewing 15 posts - 5,656 through 5,670 (of 8,753 total)