I have the need to run a query based on the data that is saved in an excel spreadsheet. The spreadsheet has two columns and about 100 rows. The two values in each row will be plugged into the sql query. The query should loop through the list. Honestly, I can put the list in whatever format is best for this process.
My guess is that SSIS may server me best, but I have never do the looping needed to make the query run each row. Below is the very simple query with Column1 and Column2 as the variables. The Column1 data is formatted as 0000 and the Column2 data is formatted as 00000.
Please be detailed in your response because my query knowledge is somewhat limited.
select * from MHGROUP.DOCMASTER
where C1ALIAS = 'Column1' and C2ALIAS = 'Column2'
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL).
Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed