473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Database project

Hi guys!
I'll try to describe situation.
1. We have VS database project.
2. It contains table A.
3. In post-deployment script for the table A we have 'insert' statements
adding records to it.
4. Some of these records are adding temporary for development using only.

So the question is how can I make build not to perform these 'insert's in
case I create the production release build of the database?
Solutions like: remove the 'insert's your self before you make a build...
not relevant, because our solution release build script gets latest version
of all the projects (including database project) before it makes the build.
So for its correct work I should each time change it in source safe. Not
best solution at all...
I suppose that the solution is in using configuration varables. I would
check with wich configuration varable the build was running and perform just
right inserts for each case, but I don't know how can I do it in database
project scripts!

Please HEEEEELP!!!!
Thanks a lot
Jul 14 '08 #1
1 1777
You could put in a simple if statement to check whether the code is running
on the development server or not. In SQL Server is the variable @@SERVERNAME.

--
Ciaran O''Donnell
http://wannabedeveloper.spaces.live.com
"Aleksey Timonin" wrote:
Hi guys!
I'll try to describe situation.
1. We have VS database project.
2. It contains table A.
3. In post-deployment script for the table A we have 'insert' statements
adding records to it.
4. Some of these records are adding temporary for development using only.

So the question is how can I make build not to perform these 'insert's in
case I create the production release build of the database?
Solutions like: remove the 'insert's your self before you make a build...
not relevant, because our solution release build script gets latest version
of all the projects (including database project) before it makes the build.
So for its correct work I should each time change it in source safe. Not
best solution at all...
I suppose that the solution is in using configuration varables. I would
check with wich configuration varable the build was running and perform just
right inserts for each case, but I don't know how can I do it in database
project scripts!

Please HEEEEELP!!!!
Thanks a lot
Jul 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Marc | last post by:
Hi, I hope to find some information on this way, I used to develop databases in Access and want to try visual basic VB.net 2005 Could someone help me how to link 2 datagrid like in the first...
2
by: Marc | last post by:
Hi, I hope to find some information on this way, I used to develop databases in Access and want to try visual basic VB.net 2005 Could someone help me how to link 2 datagrid like in the first...
4
by: JM | last post by:
Hi, I am an old programmer who is only just getting back into it after about 10 years, and for the life of me I can not work out what I am doing wrong. Firstly, I've recently downloaded and...
2
by: azmiza | last post by:
Hi everybody, I need your help. I want to view my sql database and its work very well which is display in my web browser but once I want to press button yes, its not working, I check the...
0
by: dot.yet | last post by:
Hi Everyone, environment: DB2 9.5 WSE with FP 2a Solaris 10 u5 - 64-bit SMP - 2 Quad CPUS - total 8 cores 16 GB RAM SAMPLE database Solaris Containers
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.