Viewing 15 posts - 121 through 135 (of 670 total)
how about putting all the new tables into a different schema to avoid confusion in SSMS?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 17, 2019 at 7:33 pm
do you have any DDL and sample data you could provide? It's easier to work with real data than to look and say it should work
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
December 17, 2019 at 7:24 pm
Just a thought, but instead of
IF NOT EXISTS(SELECT * ... or IF EXISTS(SELECT * ... , why not use Top 1? all you need to know is only 1 exists,...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 14, 2019 at 3:20 pm
Can you provide ddl and sample data. We don't have your tables and data
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 22, 2019 at 11:21 pm
Thanks Matt, but the * doesn't work in some occasions. I have multiple VatRates I'm trying to get and it only returns 1. This should return all 6 Vat records
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
June 12, 2019 at 5:58 pm
How about the table it is loading into? Triggers, indexes??? Also, what kind of data are you moving? Is it large binary objects, all varchar(max) columns?? how long to do...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 21, 2019 at 1:29 pm
Is it just a straight BulkInsert command? Format file? Local or over the network? how big is the file? What about the table it is inserting into? Indexes, triggers, etc...??? ...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 20, 2019 at 1:15 pm
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 19, 2019 at 10:48 am
You can always select all that data into a new table and see what the datatypes are. It may clue you in on which column and row
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 13, 2019 at 11:48 am
You can try something like this
(DT_STR,4,1252) datepart("yyyy", getdate()) + Right("0" + (DT_STR,2,1252) datepart("mm", getdate()),2) + Right("0" + (DT_STR,2,1252) datepart("dd", getdate()),2) + "_" + Right("0" + (DT_STR,2,1252) DatePart("hh",getdate()),2) +...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 11, 2019 at 6:03 am
Is the "YYYYMMDD_MMHH" part hard coded?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
February 8, 2019 at 3:16 pm
Looks like duty_saved is an alias in the first select and not the second
(([Chap 99 Rate] + [1_97 Duty_Rate]) * Proto_Value) as DUTY_SAVED
in the...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 31, 2019 at 11:49 am
Did you setup the 2 tables and try it to see what results you would get?
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 23, 2019 at 11:14 am
I don't know how or what [date] is in your query, but these 2 fail. Can you provide sample date that works
select dateadd(d,getdate()-722815,'1980-1-1')
select dateadd(d,cast(getdate()...
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 22, 2019 at 2:06 pm
Can you post DDL, sample data. You will need to use a dynamic pivot to get what you want
You can use select EOMonth('1/22/2019') to get end of month
For better, quicker answers, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
January 22, 2019 at 11:03 am
Viewing 15 posts - 121 through 135 (of 670 total)