Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table name appears in SP as Invalid
Message
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01638189
Message ID:
01638191
Vues:
41
>>Hi,
>>
>>I added a new table to the customer SQL Server database. The script of adding a table is executed without errors. And I do see this table in the DB.
>>Then I modified a stored procedure to add a record to this table, as follows:
>>
>>		IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES 
>>           WHERE TABLE_NAME = N'mobile_web_log')
>>			BEGIN
>>			  INSERT INTO mobile_web_log (user_name, date_time, order_no, tran_type) values 
>>			    (@UserName, GETDATE(), @nOrderNo, '0')	
>>			END  
>>
>>
>>Executing the Modify of the SP completed without errors.
>>
>>But when I Create a script of this SP the name 'mobile_web_log" and the fields in this table appear with red squiggly underline. And hovering mouse of the 'mobile_web_log' shows "Invalid object name". Why?
>>
>>TIA
>
>I think I answered that same question of yours just a week or so ago. You need to refresh Intellisense Cache.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform