Viewing 15 posts - 1,306 through 1,320 (of 2,883 total)
WHERE <date column> >= DATEADD(day,-7,GETDATE()) AND <date column> <= GETDATE()
Mind you, you may need to do some tweaking to those to make sure you are getting the EXACT...
March 10, 2021 at 9:56 pm
You are right there The Dixie Flatline... the ROLLBACK rolls back all transactions.
Not sure why I thought it only did the most recent one.
COMMITs happen per transaction though. So if...
March 10, 2021 at 9:54 pm
Unicode is basically special characters OR non-english characters. If it is all characters you can see on your keyboard and you have a USA keyboard layout, then you likely don't...
March 10, 2021 at 8:42 pm
One way (not ideal) to do it would be to have the excel have the "corrected" data in worksheet 1. Worksheet 2 has a connection to SQL and pulls in...
March 10, 2021 at 8:38 pm
I think it really depends on the requirements, the source data, and the expected output.
What I mean is if you are asking for 1 date parameter and then it uses...
March 10, 2021 at 8:25 pm
If the max length is 450 characters, VARCHAR(MAX) is going to be overkill. Even VARCHAR(1000) would be overkill, but would give you wiggle room. But it depends too. If your...
March 10, 2021 at 8:16 pm
What is in your SQL error log (ie not the windows error log)?
My guess (without seeing your system and seeing ONLY what you posted) is that there is some sort...
March 10, 2021 at 6:04 pm
One thing to note about Paige031's comment is that if you use the + operator on a VARCHAR and an INT column and the VARCHAR cannot be converted to INT,...
March 10, 2021 at 4:34 pm
The documents you linked say that it MUST be CHAR or VARCHAR or be able to be implicitly converted to those datatypes. According to this website:
https://www.sqlshack.com/implicit-conversion-in-sql-server/
The implicit conversion for CHAR...
March 9, 2021 at 2:32 pm
Basically, the IMPLICIT transaction being turned on means you are going to need 1 additional "COMMIT/ROLLBACK" in your statement. IMPLICIT TRANSACTIONS being turned on is like putting an extra "BEGIN...
March 8, 2021 at 9:21 pm
The error is coming from the Snowflake ODBC connector. I would check that it is configured the same on the server where SQL is hosted and on your visual studio...
March 5, 2021 at 2:05 pm
Like Pietlinden, I am not sure what you are trying to do, but one way you could do what you are asking would be with a cursors and a while...
March 5, 2021 at 2:04 pm
I agree with you ScottPletcher... I was just using examples (poorly) and bad terminology. By "unhappy" I just meant that performance would likely not be great. It is more that...
March 4, 2021 at 5:10 pm
The "media" folder would be the folder that contains the installation media. So wherever you are running "setup.exe" from is the folder you would use for that.
IF you don't have...
March 4, 2021 at 4:36 pm
You should be able to use the default installation folder UNLESS it is asking for the installation media folder in which case you will need to point it to your...
March 4, 2021 at 4:11 pm
Viewing 15 posts - 1,306 through 1,320 (of 2,883 total)