Google Mobile Ads

Tuesday, June 26, 2012

"No template information found. See the application log in Event Viewer for more details." Error Message

http://blog.laksha.net/2008/09/no-visual-studio-template-information.html?showComment=1234405860000


I am facing the following issue in my Visual Studio 2008. When I try to Create new website or new project it shows following error message.
“No template information found. See the application log in Event Viewer for more details.
To open Event Viewer, click Start, Click Control Panel, double-click Administrative Tools, and then double-click Event Viewer.”
image

SSIS 'de Execute SQL Task ile sql ifadesinden gelen result 'ı bir variable a assign ederken karşılaşılan bir problem : VARCHAR(MAX)

[Execute SQL Task] Error: An error occurred while assigning a value to variable "ColumnName": "The type of the value being assigned to variable "User::varColumnName" differs from the current variable type. Variables may not change type during execution. Variable types are strict, except for variables of type Object!."


SQL İfadesi : SELECT ColumnName FROM MyTableName


Sql ifadesinde kullandığım Varchar(max) değeri döndüren result kolonunu(ColumnName), SSIS'deki string değişkenine atamaya çalışırken yukarıdaki hata ile karşılaştım.

Çözümü şu şekide:

SSIS'de string değişkene, SQL Server'daki Max değerli bir varchar veya nvarchar veri tipi atanamadığı için, SQL ifadesindeki ColumnName isimli varchar(max) veri tipine sahip kolonu varchar(1000) gibi bir limite cast etmemiz gerekmektedir.


SELECT CAST(ColumnName AS VARCHAR(1000)) AS ColumnName FROM MyTableName

Thursday, June 21, 2012

SQL Server'da Bir Tabloya Ait Kolon İsimlerini Öğrenmek

SELECT name
FROM   syscolumns
WHERE  id = (SELECT id FROM sysobjects WHERE name='TableName')


* How to find out column names of a table in SQL Server

Wednesday, June 20, 2012

SQL Server'da Bir Tabloya Ait Kolon Veri Tiplerini Öğrenmek

DECLARE @Table_Name NVARCHAR(100)
SET @Table_Name = 'mytablename'


SELECT object_name(c.id)    AS table_name, 
c.name               AS column_name,
t.name              AS data_type
FROM syscolumns AS c 
INNER JOIN systypes   AS t  ON c.xtype = t.xtype
WHERE c.id = object_id( @Table_Name )


* How to find out column data types of a table in SQL Server

Wednesday, June 13, 2012

Data Sources for Xcelsius (Dashboard Design)

  • Business Objects Live Office
  • QaaWS (Query as a Web Service)
  • Web Services
  • SAP Netweaver BW
  • XML Data
  • FS Command
  • Flash Variables
  • Adobe LCDS
  • MS Excel Maps

Tuesday, June 12, 2012

SQL'de bir tablonun tablo şemasını (TABLE_SCHEMA) değiştirmek

Bazen aynı veritabanı içinde, dbo ya da farklı isimdeki şemalara ait tablolar ile karşılaşabiliriz. ve günü geldiğinde bu tabloların hepsinin aynı tablo şeması altında toplanması gibi bir istek gelebilir.

Bu durumda yapmamız gereken:

tableschema altında oluşturulmuş mytable tablosunu, aşağıdaki kodla dbo şeması altına çekebiliriz.

ALTER SCHEMA dbo TRANSFER tableschema.mytable



LinkWithin

Related Posts Plugin for WordPress, Blogger...