« first day (561 days earlier)      last day (978 days later) » 

12:25 AM
pourquoi?
 
hummm... mostly set-up but apparently new security update which means files they deem need moving have been moved to a folder called Relocated Items.... blah blah.... and not sure if logged in properly.... but I am done with it for now.
 
 
5 hours later…
5:16 AM
It's 10k week! I just passed 10k helpful flags
 
Zoe
5:36 AM
^^
This popped up on a question on meta:
 
hmm... codi... wonders
off to bed o/
 
Zoe
6:08 AM
Bed?!
But it's morning!
 
Zoe
6:31 AM
"You may award your bounty in 6 hours" my ass
 
@Zoe I think your avatar turned pink
 
Zoe
7:06 AM
@JennaSloan it's intentional
 
@Zoe Ok, cool. Any reason as to why that specific shade of pink?
 
Zoe
No, I just picked one I likwd
 
Well, I think it looks nice
 
Zoe
7:22 AM
I guess
 
 
6 hours later…
1:28 PM
y u no more fox?
 
Zoe
19 hours ago, by Zoe
@QHarr no, just cleaning up before I leave
 
Zoe
Again, I'm gonna be off-site. I'm not trying to disappear or anything
 
 
2 hours later…
3:30 PM
\o
 
Zoe
3:43 PM
o/
 
that crafty beep * 2 keeps appearing in the room while I'm away
 
Zoe
^^"
 
\o
 
Zoe
o/
 
 
2 hours later…
5:26 PM
\o
 
o/ long time no see!
 
Zoe
hiya Erik!
 
Yeah, been really busy, popped by in the meta chat more often to monitor the chaos
But @QHarr requested my presence, and that's a great reason to check in on you all too
 
\o
 
Zoe
^^"
 
5:29 PM
Sorry to bother you
Best way to upload a range to a SQL table?

Columns same and same order except SQL table has a final default timestamp column.

Don't really want faff with data tools due to current 64 bit install complaining about drivers when using SSMS 2017 to try upload task
There are some fields which have "," within the field. Csv uploads can therefore potentially fail. Excel uploads fail based on driver dependencies.

Is there an easy way with VBA/ADODB recordsets?



TITLE: SQL Server Import and Export Wizard
 
No worry at all, you can always ping me
 
I tried SSIS with csv but even when saving to filesystem it fails cos it assigns text type to all fields
 
Usually, I just use an Access query
 
Hummm....
So if I am generating a csv do I need to set up an Access database that loads that csv then a query to export to SQL Server?
 
@QHarr I'll name that tune in 3
 
5:32 PM
@StephenKennedy lols
 
Zoe
@StephenKennedy Anima Libera?
 
sorry. please continue with the serious business and I'll keep myself occupied elsewhere :).
 
@QHarr Nope, you can query an Excel range and insert it into SQL server directly
 
How so?
Basically I have sheet (dynamic range) - needs importing minus headers.
 
INSERT INTO [ODBC;Driver={SQL Server};Server=myServerAddress;Database=myDataBase;Trusted_Connection=Yes;].[My Table] (Column1, Column2)
SELECT *
FROM [Sheet1$A:C]
IN 'C:\MyFile.xlsx'[Excel 12.0 XML;HDR=Yes;]
Something like that
I think you can even execute it via MS Query, bypassing Access altogether, but my MS Query is very limited
You query CSVs like this: SELECT * FROM [Text;FMT=CSVDelimited;HDR=Yes;DATABASE=C:\Path\To].[MyFile#csv]. Note header/delimiter stuff is ignored and needs to be provided via a schema.ini file
 
5:36 PM
Hmmm... gimme a sec....
Could I adjust my usual connection string then @ErikA?
"Provider='SQLOLEDB';Data Source='serverName';" & _
"Integrated Security='SSPI';Initial Catalog='databasename';"
 
You need an ODBC one, not an OLEDB one
 
So do I need to provide the value for {SQL Server} in your string?
And that value be an ODBC driver?
 
Nope, just fill in your server under Server= and database name under database=
 
oh... thanks... that gives me something to be getting on with for now until the next road block,
thank you
 
The {SQL server} is the driver name, that one is present by default for 32-bits applications
 
5:43 PM
I have 64 bit
I know you use 32
 
Then you'd need to check which ODBC driver is present, if you have an OLEDB one you probably have an ODBC one too
 
How does one check with ODBC driver is present?
 
I've written a canonical about ODBC driver names here
 
Ha
SQL Server Native Client is usually what I use with wizard
 
I usually pick the first one, the fine points about which ODBC driver supports what are lost on me
 
5:49 PM
m'kay
Thanks. So I managed to tweak and get SSIS to work but gonna look at a VBA back-up plan.
 
 
4 hours later…
9:53 PM
 
We done with the grown-up stuff now?
Not that I have any topics, come to think of it :)
 
lol
yeah think I got the tool built
 
Zoe
@Feeds lmao
 
10:15 PM
\o/
:crosses fingers, eyes, legs
some pesky null handling I am hoping I can ignore...
.....what could go wrong?
in Discussion between Vali Valizada and QHarr, 3 hours ago, by Vali Valizada
@QHarr this code is running too fast
^^ helpful!
 
that's an unusual complaint
 
IKR
 

« first day (561 days earlier)      last day (978 days later) »