Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3851172
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:07:18+00:00 2026-05-19T17:07:18+00:00

In the office we use Visual Studio 2008 with Team Foundation Server as our

  • 0

In the office we use Visual Studio 2008 with Team Foundation Server as our version control system.

The products we’re developing are essentially Teradata SQL scripts and stored procedures that get deployed to run on the organisation’s Teradata database via an automated scheduler.

Problem We Have:

Whenever we need to fix a defect or deliver a change, we check-out the code, copy it to another tool to make our changes, then once we’re happy, we check it back into TFS. It would be brilliant to do everything in Visual Studio, but there are a few solutions we need to find first:

  1. SQL Syntax Highlighting
  2. Ability to Execute SQL Scripts (will Teradata’s .NET Data Provider do the job?)
  3. Parameter Substitution

Surely syntax highlighting and SQL execution can be done somehow, but I’m particularly worried that the Parameter Substitution will be the blocker as I’ve never heard of Visual Studio doing anything like this.

How we use Parameter Substitution:

For parameter substitution, we need the ability to use a parameter for our database names (or any text for that matter), so that when we execute the SQL, Visual Studio basically substitutes the parameters within the code to whatever we need for the data source we’re connected to, whether it’s a Development, Test or Production environment.

For example, we may have the query:

SELECT Client_Id, First_Name, Last_Name  
FROM <<Client Database>>.Client_Names

When we execute that from Visual Studio, we need it to do parameter substitution, so behind the scenes, the following is what’s actually sent to the database server:

SELECT Client_Id, First_Name, Last_Name  
FROM Client.Client_Names

In the same way, if I do:

SELECT '<<Client Database>>'

It would return a result of 'Client' when connected to the Production server.

On the other hand, if I’m connected to the Development server, it would return 'DevA_Client'.

The tool we currently use to do this simply has the parameters with the values defined in a CSV file (i.e. Prod-params.csv). Then there’s a setting in the tool to link Prod-params.csv to the Production data source connection. An example of what this CSV file looks like is:

<<Client Database>>,Client
<<Order Database>>,Order
<<SomeHistoricDate>>,CAST('1997-05-28' AS DATE)

I’d love someone to be able to point me in the direction to be able to do any of this stuff in Visual Studio.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:07:19+00:00Added an answer on May 19, 2026 at 5:07 pm

    All the task you arfe describing can be done by writing a Visual Studio AddIn package, even the syntax higligthing, but is not a trivial task. Anyway try to start from here: http://msdn.microsoft.com/en-us/library/bb166533.aspx . Basically you can do everithing by extending VS, so parameter replacement should be easy as well. Additionally, if you have a working .NET provider for your target db eventually executing the query should be the simpler task.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use TFS 2008 for source control with Visual Studio 2008 at my office.
I use visual studio 2008 for my development purpose. I also have Visual Source
I'm in Visual Studio 2008, and I'm editing a CSS file. I use ctrl+f
Can someone give me a quick explanation of when I would use Visual Studio
How to bring the taskbar on top of Visual Studio 2008 when in Full
I am using Visual Studio 2010 with Visual Studio Tools for Office installed. I
My office has a central Source Safe 2005 install that we use for source
I heard Microsoft allows use of commercially available Office UI controls, with the exception
I need to use sendmail from Macs in an office. At the moment, I
Everyone in my office uses Macs and therefore most use Safari. We have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.