|
Christian Graus wrote:
the books online that come with SQL Server are pretty good
I do not have SQL Server. I have played with MySQL, MSDE, Access, and SQLite, but I want to get beyond the basic playing and learn how to actually do something. Thanks for the link to the guru's books, looks like they would also make an interesting addition to my book shelf.
As an aside, the link you gave me to amazon.com lists it's prices in US dollars does it not? The price they are quoting for the box set is $98.86. I looked up the same box set on chapters.ca and they are quoting $97.99 CDN. With the exchange what it is I would save 20% by buying the set from chapters instead of from amazon. Not only that, but chapters gives free shipping.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
MSDE is Sql server. SQL Books On line can be downloaded here.[^]
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Thanks for the link Rob, I am downloading right now
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
I have an sql table with many varchar columns and the row size exceeds 8000 max.
If I redesign the table to make the lengthy columns to text data type, what are the implications on the data?
any other issues?
TIA.
|
|
|
|
|
If the rows that are changed to text are rarely used - you may see a speed increase. If they are heavily used, then you may see a speed decrease. Client code won't need to change that much. There are more restrictions in Stored Procs on the manipulation of Text Fields.
Text fields are stored in a seperate place from rest of the table data. Therefore, it takes a minimum of 2 IOs for the SQL Server build a query result that contains a text field.
|
|
|
|
|
A better approach would be to take a hard look at the table design, and see if you can split the table into several smaller ones.
Text (or NText) columns can't be used in 'Like' queries (you would have to use ful text search) and they will introduce a performance hit, since the data is stored in a binary tree rather than in the table (the table will only contain a pointer to the root of the tree). this results in at least one additional disk IO for each field returned (possibly more if the field was large, and had to span several allocation nodes on the storage tree).
Certainly you have more data per row than can easily be displayed, so I would think multiple tables with a common foreign key would work.
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
Thanks all.
I agree to the idea of spliting the table with foreign Key relations
than changing to text fields.
thanks again.
|
|
|
|
|
Hi,
I have a foxpro dbf file and I want to copy the data from mdf to sql server,
how can I ? I have tried through the sql server Import wizard but failed to
do this....Pls help
Thanks
Ram
|
|
|
|
|
Try the Data Transformation Services import/Export wizard of the sql server and choose the correct data source.
Does it work!
phokojoe
|
|
|
|
|
|
Hi,
Anyone got source code to change SQl Server startup account to SA.
I need this to be run in my installation.
VB script, java script or installscript will be very helpful.
Thanks
Toms
|
|
|
|
|
|
Help me
I have a trouble again with M.Access. I have a combo-box on a form, and this combo-box has the responsibility on showing the Query which creates the 4-column table, including Company,Name,Address and ClientID.
My purpose is that I want to show this Query in the combo-box in the order A-Z, before the blank company items.
My solution:
I create a query like below:
select .........
from nhanvien
where company is null
union
select .........
from nhanvien
where company is not null
However, the result isn't right like my hope. I think that the reason is because of the order of the ClientID which is the primary key...As a result, the destination query automatically sorts on the ClientID order.
Thinking of the solution :
I don't know how to do to archieve that result. I think so much about the SQL sentence of the above query. I believe that there's another SQL sentence helping me to solve this problem. I'm very happy whether you give me a SQL sentence to do that or another solution to obtain the same result ....
Thanks so much <vtalau>
|
|
|
|
|
<br />
Select Company,... from nhanvien where company is NOT NULL<br />
Union<br />
Select Company,... from nhanvien where company is NULL<br />
order by Company ASC<br />
<br />
This wont quite accomplish what you wan, the null values will sort to the top, not the bottom, but at least the non-null values will be sorted a-z for you.
an alternative would be to do this in two steps:
selecting all the not-null records first:
<br />
Select Company,... from nhanvien where company is NOT NULL order by company ASC<br />
and add the records to the combo box
then add the remaining values with a second query not sorted
<br />
Select Company,... from nhanvien where company is NULL <br />
and add the results to the combo (don't clear the first set of results)
Absolute faith corrupts as absolutely as absolute power
Eric Hoffer
The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer
|
|
|
|
|
hi all,
i am facing a prob lem in accessing database over network.
i should elaborate the problem bit more
look if use the connection string as below then it works fine,
"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=C:\xyz\abc.mdb;"
but when i try to use it as
"PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=\\webbdv\jkl\mmm.mdb;"
where webbdv is computer name which is residing on network and not my local machine then application gives error
'Disk or Network Error'
hopefully you are having answer for this question waiting for your reply
thnking in anticipation
neoms21
|
|
|
|
|
The most obvious question is, can you see that folder on your network from that machine, without having to log in to it ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yes i can see that folder even access them and edit i am having all security privilleges.
but when ran in application it doesn't get access.
|
|
|
|
|
The user that your site runs under needs access. When you're browsing, you're not doing it as that user. How is the site written ( asp/asp.net/etc ? ). Do you know the user your site runs as ? Does IIS allow anonymous access ( if so, you're probably running as an anonymous user ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
yes IIS allows anonymous access.
and my site http://webbdv/firstpage.aspx
|
|
|
|
|
i have data in bulk in Txtfile delimited by commas and row by CR, I want to iport this data into my msSQL server "PS101" , Database = "RAW_MSG", Table name = "RAW_MESSAGE".
how can i do it please help....i am new to C#....i have to do it through console programming...can anyone give a lead by how to connect to server and bulk import a data and fill the database.
thanks for anyhelp
in advance
Bose
|
|
|
|
|
The SqlConnection[^]class is your starting point, you should find all the example code you need for the database connection stuff from that link.
Here[^] is a quick link to how to read text files in C#.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
help me...
I have some troubles with M.Access. I want to create the calendar control on a form of my Access database like the calendar control of vb.net or C#. However, I can't find the way to do that .Thus, I'm very happy if you help me...
|
|
|
|
|
You have insert the "Microsoft Date And Time Picker Control". Usuary it's at the tools floating window, if it isn't, you'll have to search for it in "ActiveX Controls" in the Tools menu. Usually, it's available, but it depends on your Access installation.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Do someone know how to run a DTS package from stored procedure..
I need code syntax or example.
Thanx in advance..
--junior coder--
|
|
|
|
|