Viewing 15 posts - 76 through 90 (of 2,610 total)
from ChatGPT
Query Explanation
Given Tables:
Table1 | Table2 |
---|---|
A | B |
B | C |
C | D |
SELECT t1.name, t2.name
FROM Table1 t1
INNER JOIN Table2 t2
...
April 24, 2024 at 9:59 am
Have you got an example of the sort of data you'd like to insert?
April 24, 2024 at 9:54 am
You could import them all as nvarchar then try to work out where the error is.
You need to have the columns consistent throughout the entire file.
April 23, 2024 at 3:52 pm
If you want to find the query you could run something like this soon after the problem occurs.
DECLARE @Database sysname = 'Test'-- Specify your database
SELECT DB_NAME(qt.dbid) AS...
April 18, 2024 at 3:32 pm
Please consider learning standard SQL. We don't have an IFF() construct; that was spreadsheets and perhaps some nonrelational languages. Take the time to write everything out as a CASE...
April 17, 2024 at 9:40 pm
Have you checked the SQL Server logs?
April 17, 2024 at 4:31 pm
As someone who used temp table and had a lot of issues with it, I highly recommend start creating table into DB and use it.
TempDB is good only if...
April 17, 2024 at 4:10 pm
I have resorted to setting the DATEFIRST in the SQL Agent job, but I still want to know WHY SQL agent and Query window behave differently.
Different users can be...
April 15, 2024 at 3:15 pm
I have resorted to setting the DATEFIRST in the SQL Agent job, but I still want to know WHY SQL agent and Query window behave differently.
Different users can be...
April 15, 2024 at 3:15 pm
This produces the exact same results as Jonathan's query with far fewer reads.
WITH CTE AS
(
SELECT xp.RBDTYR
...
April 12, 2024 at 8:49 am
April 11, 2024 at 5:11 pm
I uploaded your picture to ChatGPT 4 and asked it to: "Write a SQL Server create table (table name: XXXRE60P) and insert script for this, make sure you...
April 11, 2024 at 5:01 pm
Have you tried my solution?
;WITH CTE AS
(
SELECT DISTINCT
RBDCTL,
...
April 11, 2024 at 4:13 pm
Have you tried my solution?
;WITH CTE AS
(
SELECT DISTINCT
RBDCTL,
...
April 11, 2024 at 3:54 pm
April 11, 2024 at 2:53 pm
Viewing 15 posts - 76 through 90 (of 2,610 total)