Viewing 15 posts - 556 through 570 (of 2,694 total)
how big is the table?
if only a few thousand rows then a script with insert statements would likely work fine as mentioned before.
but for anything with volumes BCP or powershell...
May 5, 2023 at 4:20 pm
Another option if you don't want to be moving data between your local and the prod server, creating temp tables, CTE's etc... would be to use SSIS and just...
May 1, 2023 at 4:13 pm
replacing the CR + LF on a text field IS losing data - maybe not important on your case, but it is still data.
In one of the migrations on my...
April 27, 2023 at 3:00 pm
Thank you for you input, that actually worked for me.
what worked? creating a valid CSV file or removing potentially valid data from your output? and if removing valid data...
April 27, 2023 at 1:35 pm
not as easy as that. the environment within a SQL job step is a number related to the number of the environment on that particular server.
trying to recreate the same...
April 26, 2023 at 8:37 pm
SSL error - encryption needs to be setup correctly or disabled on the client connection string
trust server certificate below may need to be ticked if this was a SSMS connection.
for...
April 26, 2023 at 10:00 am
assuming the recipient of the file is able to correctly process a CSV file you need to ensure that the SSIS flat file destination is set to Quote the fields...
April 25, 2023 at 9:37 pm
I would say that you have a trigger on that table that is removing seconds from the column.
and I also assume you are clearing that table in order to do...
April 24, 2023 at 8:06 pm
can you try
select top 1 quote_date, convert(varchar(26), time_stamp, 121)
from dbo.OptionsEOD
order by 1
April 24, 2023 at 7:24 pm
can you show both the select statement and the output - only for the one that is failing, nothing else.
April 24, 2023 at 6:23 pm
your query does not tell us which table has the wrong data.
but assuming it is DBO.OptionsEOD try the following change on your dynamic SQL
EXEC('BULK INSERT #TEMP_TABLE
... April 24, 2023 at 5:06 pm
Hey Bruin I have to ask are you trying not to get help? I mean several individuals posted items that your initial post was lacking and you have made...
April 21, 2023 at 10:49 pm
have a read at this https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/register-a-service-principal-name-for-kerberos-connections?view=sql-server-ver16
with it you are likely able to determine it yourself.
one thing you will need to determine is if you have a double hop situation -...
April 21, 2023 at 1:50 pm
some of those variables need to be explicitly converted to varchar - example below for @@SPID
INSERT INTO Logs.dbo.LogonInfo (Spid, UserName, LogonDate, ClientNetAddress, HostName)
VALUES (convert(varchar(200), @@SPID), SUSER_NAME(),...
April 19, 2023 at 12:27 pm
and have you done as I advised on your original thread (https://www.sqlservercentral.com/forums/topic/tracking-of-accounts-data-and-stored-procedures) and debugged your code to see what you are doing wrong?
if so what step within your multiple SP's...
April 19, 2023 at 12:25 pm
Viewing 15 posts - 556 through 570 (of 2,694 total)