Viewing 15 posts - 61 through 75 (of 179 total)
The better option would be to have your database object definitions in your code store, so you can grab them and run them in the new server.
October 21, 2019 at 11:44 am
Why the extra step of replacing the concatenated CR and LF? Doesn't replacing the individual CHARs suffice? That's how I've done it, and I'd like to know if there is...
October 15, 2019 at 12:37 pm
I'm confused. What data is added, given that the temp table #songs never had anything in it?
September 6, 2019 at 11:21 am
Don't forget to use floating-point math, not integer math, when you're dividing by 5280.
For example, 660 feet is 1/8 of a mile.
SELECT 660/5280
SELECT 660/5280.0
The result of the...
August 7, 2019 at 11:43 am
If you want to MERGE into table TRANSDETAIL, then that would be the TARGET.
Is the CTE meant to be the source of data that your MERGE is using? Then it...
August 5, 2019 at 11:55 am
I got the "right" answer because I recognized the concept of the question - that if we do not supply an ELSE in a CASE statement, anything that fails the...
August 2, 2019 at 12:05 pm
In your select statement, you'd replace
, A = B
with
, CASE .... END
that was given above.
The Cast converts the constants 1 or 0 which are integer values to bit data types. ...
April 24, 2019 at 1:39 pm
Mine was on an import, yours an export. I missed that before.
April 18, 2019 at 2:50 pm
I had this problem just last week. The additional error message was "External table is not in the expected format."
I fixed it by opening the Excel file and then saving...
April 18, 2019 at 1:40 pm
You checked whether the "WHERE EXISTS" would return any data.
Instead, check what will be deleted by changing "DELETE" into "SELECT *".
February 28, 2019 at 5:17 am
A VIN could be repeated after 30 years. That's because the Year character repeats on a 30-year cycle, using 0-9 and 20 alphabetic characters (excluding those that look like numbers,...
February 11, 2019 at 6:01 am
A good question.
In the explanation:
So although we deleted the row with i = 104 (while IDENTITY_INSERT is still ON) it does not reuse this value nor...
February 11, 2019 at 5:17 am
January 31, 2019 at 8:45 am
Remember some key differences when using SET or SELECT:
January 31, 2019 at 5:22 am
It reminds me of ASCII art from the 80s (70s?) and it definitely works best...
January 10, 2019 at 5:22 am
Viewing 15 posts - 61 through 75 (of 179 total)