Import tab delimited data files directly into SQL Server via SSMS

Recently, I wanted to bring data into a SQL Server table, and I wanted to do so w/o SSIS. I know that I had done this before, but, of course, I had forgotten the details. I found the best answer here:

The solution requires putting a “Schema.ini” file in the same directory as the file you are attempting to upload, and the file HAS TO BE NAMED “schema.ini” (case insensitive). The contents of the simple text file should be as follows:

Continue reading

Posted in SQL 2000, SQL 2005, SQL 2008, SQL 2012, SQL Administration, SSIS | Tagged , , | Leave a comment

Using SQL to read from a web service

Recently, I needed to find correct addresses for physical locations that I had only latitude and longitude.   The general process to do this follows:

script to PROVE OUT the process for generating good addresses from JEA bad addresses thru the provided lat/long
(assumes, hopes the lat/long are good)
1. TMP table: Create a table of the addresses, lat and long
2. XY PROJECTION: create CTE using function on each row of tmp table to fill in XY projection
3. XY PROJECTION–>URL: create CTE with URL w/XY
4. CALL FOR RE: Using prior CTE… create CTE using function on each row to fill in new (correct) RE Continue reading

Posted in SQL 2012 | Tagged , | Leave a comment

SQL Saturday May 2016, Jacksonville, FL

Hey, Everyone… our annual get-together of SQL professionals is happening on May 7th, at UNF, here in Jacksonville.  I will be speaking at 9 AM on breaking into the world of Azure & PowerBI, using (mostly) the skills you likely already have in SSMS.  From 9 to 5 PM it is one of your very best opportunities to learn a lot of new things, develop professionally, meet new people, enjoy a free lunch and…have a great time!

SQL Saturday, Jacksonville 2016

Come to this FREE learning opportunity!

Come to this FREE learning opportunity!

Posted in Azure, Career, Performance Tuning, PowerBI, SQL Administration, SSAS, SSIS, SSRS | Leave a comment

PowerBI

Now I am developing a PowerBI demo. Here’s my first look:

This is based on Duval County Florida real estate parcels.

Posted in Azure, PowerBI, SQL 2012 | Tagged , , , | Leave a comment

Querying a remote server w/ SQLCMD

So, sometimes you need a simple way to run (often the same) command on two different servers at the same time. Perhaps setting up a Linkserver is difficult, or simply too time consuming. Here’s an option. Try SQLCMD. Continue reading

Posted in SQL 2008, SQL 2012, SQL Administration | Leave a comment

Direct query to excel (AceOleDb.dll)

So, often you need to get excel data into SQL ‘in a hurry’ for analysis.  After you’ve done a base case analysis you can go about getting the data in a more ‘regular’ fashion.  What’s the fastest way to get an excel into SQL?  AceOleDb…that’s how.    Continue reading

Posted in SSIS | Tagged , , , , | Leave a comment

Importing (old) SSIS packages into VS 2012

SQL 2012 introduced a new deployment model.  Many of us, for various reasons didn’t move along with Microsoft…and continued to use and deploy the old SSIS Packages (.dtsx) … even to SQL 2012.  So, that being the case, how do you get to these old packages?

VS 2012 is looking for “Project Deployment Files”…or for “Integration Services” catalogs.  We didn’t have those things before 2012.  And, we can operate without them, still.  But, how? Continue reading

Posted in SQL 2012, SQL Administration, SSIS | Tagged , , | Leave a comment

Government Transparency Powered by SharePoint 2013 and Sql 2012

sql Saturday #391

Click me to register

Hey, everyone! There’s a great event here in Jacksonville, Florida. It’s coming in May.  Saturday, 9 May, to be specific.  It is like a mini Tech-ed. Free Food. Great Technical presentations.  Click the picture to the right to register!

Lots of networking. Fellowship. Swag. After hours party. What could be better than that? I will be speaking on a “Government Transparency Powered by SharePoint 2013 and Sql 2012”.

Posted in SharePoint 2013, SQL 2012 | Tagged , | Leave a comment

SharePoint 2013 and SQL Powered BI

I know i have been AWOL now for some time… i have been heavily focused on bringing up Sharepoint 2013…and also empowering it with SQL 2012. And, actually there’s even more to it than that. One of the benefits of 2013 is that Microsoft has extended the value proposition by enabling the creation of a public site w/o real cost. Not only that…Microsoft says that you can access your SSAS components from that public site. Ok…think about that. That’s really big! That’s what we collectively thought as well.

HOWEVER, there are some caveats. Actually there are quite a few caveats that you can easily stumble into. Going forward, i expect to blog about these as we find them.

The first I’m going to mention has to do with Anonymous access to an excel file. It turns out that while other users aren’t limited (so far as I know today), Anonymous user can’t browse excel files greater than 10 MB! So, for context, we had built a PowerPivot based excel with some 180 MB of data. We published it to the sharepoint 2013 site. We went to the site ourselves (ie. IE knew our identity and passed it to SharePoint. Sharepoint showed us the file in a browser. Yeay! Success!

Hold your horses…check with anonymous! We anonymously logged in to the sharepoint public site, navigate to the Excel file, attempt to open, and ERROR! Arghh! Why would Microsoft do this? Well, it’s money, of course!

See here for more Microsoftian data:

http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/file-size-limits-for-workbooks-in-sharepoint-online-HA104099212.aspx

 

More to follow!

Posted in SharePoint 2013, SSAS 2012 | Leave a comment

SQL Saturday Jacksonville, May 10, 2014

sqlsat298_webHey, everyone! There’s a great event here in Jacksonville, Florida. It’s coming in May. It is like a mini Tech-ed. Free Food. Great Technical presentations.  Click the picture to the right to register!

Lots of networking. Fellowship. Swag. After hours party. What could be better than that? I will be speaking on a “How SQL 2012 Empowers BI in Sharepoint”.

Posted in Azure, Career, Performance Tuning, PowerBI, SQL Administration | Leave a comment