Table Partitioning - Filegroup & Files
Hi, I am designing 5 Tables, all of them will be partitioned on a common Partitioning Scheme and Function (one table is Parent and all 4 are child tables so have the PK's and  FK's in place to have...
View ArticleWhich data type is used to store RTF Data
hi there I am using sql 2005 & vb.net .I want to store richtextbox (rtf) data into my sql 2005 database.Please suggest me which data type field is best to store rtf data.Thank's and Regard's
View ArticleSetting Table DataTypes
Hi,I am looking for opinions/suggestions on my below database structure. I have 3 tables so far... Section, SubSection, SubSectionItems.SubSection has a FK relationship with Section, and SubSectionItem...
View Articlechanging a trigger into a store procedure
I have a trigger in SQL, it does what i want but created a time out error. It slows everything down. I thought if i created a strored procedure instreat to go 2 times a day this might be better. does...
View Articleset a default as a value from a different columns
I have a table in SQL. I would like to set one column to have a default to what has been entered in a another column in the same row.for example if my "cost" is "5"Â I want "cost A" to automaticaly have...
View ArticleHorizontal vs Vertical table design for multiple business keys
A colleague of mine really, really wants a vertical table design for this particular table in question, but I need some help understanding the benefits as right now it seems more trouble than it is...
View ArticleDoes Normalization decrease performance
Hello all I have a question regarding Database Normalization. What is the impact of Normalization on Performance? Does Normalization decrease or increase performance? Please help me find answers for...
View ArticleDividing SQL database for different information storage
I’ve created the database with the table names for the user information like this:DELETE TABLE [dbo].[p_Products]; DELETE TABLE [dbo].[p_ProductsInCategories]; DELETE TABLE [dbo].[p_Categories];Lets...
View ArticleClustered Index
Is it possible to add clustered indexes into an existing database?we have some SQL Azure databases that we want to move back to a on premise sql server.When we run the Export Data Tier Application...
View ArticleDatabase Strategy Question
Please let me know if this is not the right location to ask this question. I am a developper and spend most of my time in Microsoft Visual Studio, and not enough time inside of SQL server.Here is the...
View ArticleRemove scientific notation from xml column
I have a xml column as shown below<Root><Row><Rowid>1</Rowid><date>2013-05-06</date><Balance>1.0002E7</Balance></Row></Root>When i query for...
View ArticleSchema Design
Hello,I am trying to create new Database(s) and corresponding tables to store runtime data from a User interface tool. The data is all about a Environmental control system being built in a data center....
View ArticleNormalization (Design)
Hi,As far i understood about normalization i put effort to understand more clearly so i did the attached relationships between tables.Please refer to the attachment and correct me if i did anything...
View ArticleWhat are the stages in Data Modeling?
What are the stages/steps in Data Modeling?Can some one tell me the answers?
View ArticleADVANCED CHECK CONSTRAINT IN SQL SERVER
Hello!I'am doing an application, for paiement. I've choosen to use SQL Server to resolve what MYSQL, SQLite, DB2, Protesql were unable to do, in fact using CHECK constraint.Is there any way to use...
View Articledatabase backup file location settings
Hi Everyone, This must be a silly question and I think I just want confirmation. I can't find (or I'm not searching with the right keywords) the documentation for it. I get a backup file from a remote...
View ArticleError run script create mail profile.
Msg 15466, Level 16, State 2, Line 1 An error occurred during decryption. Msg 14607, Level 16, State 1, Procedure sysmail_verify_account_sp, Line 42 account name is not valid
View Articlechange of structure after using sql server query profiler wizard
Hi all, it seems that after using sql server query optimizer wizard my table has changed of structure and has been converted to a index organized table, is it possible?I mean after using the wizard and...
View ArticleHow to auto generate unique varchar value while inserting data into table
HiiHow to auto generate a primary key varchar value while inserting data into a table in sql server 2008...Please help me to know.....Thanks in advance...
View ArticleHow to truncate a table with specific records
HI Everyone,I got a question that Can I truncate specific records only from a table.We can do that by using delete right??delete from tawhere c=1But i need to do this using truncate command..Is there...
View Article