Sorry for the bad title, if you can think of a better one, let me know.
Many-to-many relationship using tables.
Product
ProductCategory
Category
In the ProductCategory table i have boolean column primarycategory
Each product must have a primary category.
I want to find all products in my database which don't have a primarycategory...
Hi,
I want to create a a full text search usng ms sql 2005.
here is the structure of my table
User-contains fields of Id, fname,lname,email,alternativeemail
Attachment-contains fields of id, name,category,filenameorurl
Certification-contains of fileds of id, title,school,sdate,edate
EducationalBackground-contain of fields of, id,quali...
Our company currently has seven dedicated SQL Server 2008 servers each running an average of 10 databases.
All databases have many stored procedures and UDFs that commonly reference other databases both on the same server and also across linked servers.
We currently use SSMS for all database related administration and development but ...
Hi folks.
Here's the problem:
I have a project that needs to be migrated to Microsoft SQL Server 2008.
We have data in text files for the Oracle SQL Loader and now we need to get that data into the SQL Server DB.
I could write a program that converts everything into INSERT statements but there has to be a more comfortable way to so t...
I have a very large table in my database and I am starting to get this error
Could not allocate a new page for
database 'mydatabase' because of
insufficient disk space in filegroup
'PRIMARY'. Create the necessary space
by dropping objects in the filegroup,
adding additional files to the
filegroup, or setting autogrowth on...
how to pronunce ms sql sever (is it sql server or sequel server).
...
What are my options for achieving a cold backup server for SQL Server Express instance running a single database?
I have an SQL Server 2008 Express instance in production that currently represents a single point of failure for my application. I have a second physical box sitting at the installation that is currently doing nothing. I w...
I am using SQL Server 2008
I have a table with xml data looks like:
ID xml_col
1 <Attribute id="7">1.0</Attribute><Attribute id="8">AAA</Attribute>
2 <Attribute id="7">2.0</Attribute><Attribute id="8">BBB</Attribute>
3 <Attribute id="7">3.0</Attribute><Attribute id="8">AAA</Attribute>
...
Hey, I have a table like this
Name State Amount
------------------------------
Pump 1 Present 339
Pump 1 Optimized 88
Which I want to transpose something like this
Pump 1 Present 339 Optimized 88
How can I do this with MS SQL 2000? I tried to search for a solution, but couldn't find the most fitting solution...
I am developing a website with huge data which to be stored in SQL Server database. How should I optimize it to make it faster.
1. Using Stored procedures.
2. Functions / Views.
3. Any other methods
...
Hi,
I have a problem, I created a full text search query which return a record(s), in which the paramater I have supplied match(es) in every fields(full-text indexed) of multiple tables. The problem is , when the user.id is equal to ceritification.AId it returns a records eventhough it was not satisfied with the parameter supplied.
Fo...
Hi,
I found an interesting article about Platform layer for SQL Server.
It talks about SQLOS. As I understand it is an abstraction layer between the hardware and SQL Server. So does it mean that we can have SQL Server installed without installing windows?
It sounds very strange to me... Please tell me where it is possible to find more ...
Hi,
I have a simple SQL insert statement of the form:
insert into MyTable (...) values (...)
It is used repeatedly to insert rows and usually works as expected. It inserts exactly 1 row to MyTable, which is also the value returned by the Delphi statement AffectedRows:= myInsertADOQuery.ExecSQL.
After some time there was a temporary n...
I allways used php 5.2.3 version ,but now I updated php to 5.3.2 version.
I have problem with mssql,I can`t connect to mssql server.
I have downloaded a sql server driver for php 1.1
There are a lot of files, i used 'php_sqlsrv_53_ts_vc9'
Put it on php/ext directory 'php_sqlsrv_53_ts_vc9'
I have added - extension=php_sqlsrv_53_ts_...
I want to compute result from this table.
I want quantity 1 - quantity2 as another column in the table shown below.
this table has more such records
I am trying to query but not been able to get result.
select * from v order by is_active desc, transaction_id desc
PK_GUEST_ITEM_ID FK_GUEST_ID QUANTITY TRANSACTI...
Hi,
I need to automate the migration from an Access (2003) to an SQL Server DB (2005 or 2008). The upsizing should be done automatically as part of a build process.
I need that because there are 2 versions of the software, a single user rich client and a web version. Access DB is used for single user to minimize setup effort, SQL Server...
Essentially, I want to do this in T-SQL
1) Execute SPROC1
2) Upon completion of SPROC1, execute SPROC2
3) Upon completion of SPROC2, execute SPROC3
I know this is possible using SSIS. If there any way I can do this?
Thanks
...
Good Afternoon,
I realise there is a command:
BACKUP DATABASE [DB Name] TO DISK [PATH]
Is it possible too backup to a remote location? - E.G. the web server rather than the database server?
Many Thanks,
Joel
...
I'm using SQL Server 2005.
I have a table whose row size should be 124 bytes. It's all ints or floats, no NULL columns (so everything is fixed width).
There is only one index, clustered. The fill factor is 0.
Here's the table def:
create table OHLC_Bar_Trl
(
obt_obh_id int NOT NULL REFERENCES OHLC_Bar_Hdr (obh_id),
obt_bar_...
Hi,
in my SQL2008 I have a user which is in the "db_datareader", "db_datawriter" and "db_ddladmin" DB roles, however when he tries to modify a table with SSMS he receives a message saying:
You are not logged in as the database owner or system administrator. You might not be able to save changes to tables that you do not own.
Of course...